• The Ajay Gupta
  • NEWBIE
  • 30 Points
  • Member since 2014

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 4
    Questions
  • 4
    Replies
Hi,

Im having trouble displaying an output like this:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius varius ipsum eget aliquet. Phasellus maximus purus ut lectus pharetra, id iaculis ligula aliquam. Aliquam eget erat dolor. Fusce maximus consectetur velit, in fringilla est. Duis elementum sollicitudin nunc ac malesuada. Cras et eros blandit, congue justo eget, ornare nisi. Nullam quis orci ut quam porttitor sodales.

Nunc eget velit non tellus blandit vulputate. Phasellus porta felis a magna accumsan laoreet auctor at arcu. Mauris mattis orci leo, a elementum nunc sodales vel. Mauris feugiat, odio ac elementum ultrices, quam orci finibus urna, nec lobortis sem lorem id arcu. Morbi nunc tellus, elementum ac erat non, aliquet porttitor eros. 

It is infact, actually displaying them like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius varius ipsum eget aliquet. Phasellus maximus purus ut lectus pharetra, id iaculis ligula aliquam. Aliquam eget erat dolor. Fusce maximus consectetur velit, in fringilla est. Duis elementum sollicitudin nunc ac malesuada. Cras et eros blandit, congue justo eget, ornare nisi. Nullam quis orci ut quam porttitor sodales.
Nunc eget velit non tellus blandit vulputate. Phasellus porta felis a magna accumsan laoreet auctor at arcu. Mauris mattis orci leo, a elementum nunc sodales vel. Mauris feugiat, odio ac elementum ultrices, quam orci finibus urna, nec lobortis sem lorem id arcu. Morbi nunc tellus, elementum ac erat non, aliquet porttitor eros. 

I need to be able to display the formatting and line breaks that the user has added. 

I do not know when the line breaks will be its just a large text field that the user can input comments in, and they may need to use the enter key to generate a new line.


Can anybody offer any assitance?

Thankyou in advance,

Lewis Reed
I have found lots of error when practicing on this trainhead. It seems trialhead is not working if namespace are enabled.

There was an unhandled exception. Please reference ID: KDXDFLAT. Error: Faraday::ClientError. Message: INVALID_TYPE: select id from battle_station__c where name = 'TH ^ ERROR at Row:1:Column:16 sObject type 'battle_station__c' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

When I click on Verify it generates the below error:

User-added image

Trying to run below code in Developer Console & getting error:
public class Test{
    String abc;
    Integer i;    
       Double d;
        public Test(){
            abc= null;
            i=0;
            d=0.0;
        }
    public Test(String abc,Integer i, Double d){
            this.abc=abc;
            this.i=i;
            this.d=d;
        }
}
Test t = new Test('Test',45,450);
System.debug(t);

Error :UNKNOWN ERROR: apex.bytecodeinterpreter.InterpreterRuntimeException: Unable to load class: esw/anon$Test Error Id: 923405943-75655 (-539347543)

What does it mean?
Ihave two Apex Rest Webservice Rest1 & Rest2.

Rest1 webservice Apex class has annotation @RestResource(urlMapping='/ApexRest')

Rest2 webservice Apex class has annotation @RestResource(urlMapping='/ApexRest/*') which is saved last.

But when I tried to call the Apex Rest webservice using url url/service/apexrest/ApexRest it calls Rest1 not Rest 2 which is last saved. So I am getting confused, Is salesforce documentation is right?

An extract from Page No: 255 Force.com Apex Code Developer's Guide V34.0 summer'15 documentation:

The URL patterns URLpattern and URLpattern /* match the same URL. If one class has a urlMapping of URLpattern and another class has a urlMapping of URLpattern /*, a REST request for this URL pattern resolves to the class that was saved last.
StackExchange Question Link : Link (http://salesforce.stackexchange.com/questions/83942/apex-rest-webservice-is-not-working-as-documented-in-force-com-apex-code-develop)

When I click on Verify it generates the below error:

User-added image

Trying to run below code in Developer Console & getting error:
public class Test{
    String abc;
    Integer i;    
       Double d;
        public Test(){
            abc= null;
            i=0;
            d=0.0;
        }
    public Test(String abc,Integer i, Double d){
            this.abc=abc;
            this.i=i;
            this.d=d;
        }
}
Test t = new Test('Test',45,450);
System.debug(t);

Error :UNKNOWN ERROR: apex.bytecodeinterpreter.InterpreterRuntimeException: Unable to load class: esw/anon$Test Error Id: 923405943-75655 (-539347543)

What does it mean?
I have some logic to be executed only when the salesforce user has logged in for the first time. I don't want the logic to be executed on every page refresh.
Is there any way to determine the salesforce user first time login?
Hi,

Im having trouble displaying an output like this:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius varius ipsum eget aliquet. Phasellus maximus purus ut lectus pharetra, id iaculis ligula aliquam. Aliquam eget erat dolor. Fusce maximus consectetur velit, in fringilla est. Duis elementum sollicitudin nunc ac malesuada. Cras et eros blandit, congue justo eget, ornare nisi. Nullam quis orci ut quam porttitor sodales.

Nunc eget velit non tellus blandit vulputate. Phasellus porta felis a magna accumsan laoreet auctor at arcu. Mauris mattis orci leo, a elementum nunc sodales vel. Mauris feugiat, odio ac elementum ultrices, quam orci finibus urna, nec lobortis sem lorem id arcu. Morbi nunc tellus, elementum ac erat non, aliquet porttitor eros. 

It is infact, actually displaying them like this:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas varius varius ipsum eget aliquet. Phasellus maximus purus ut lectus pharetra, id iaculis ligula aliquam. Aliquam eget erat dolor. Fusce maximus consectetur velit, in fringilla est. Duis elementum sollicitudin nunc ac malesuada. Cras et eros blandit, congue justo eget, ornare nisi. Nullam quis orci ut quam porttitor sodales.
Nunc eget velit non tellus blandit vulputate. Phasellus porta felis a magna accumsan laoreet auctor at arcu. Mauris mattis orci leo, a elementum nunc sodales vel. Mauris feugiat, odio ac elementum ultrices, quam orci finibus urna, nec lobortis sem lorem id arcu. Morbi nunc tellus, elementum ac erat non, aliquet porttitor eros. 

I need to be able to display the formatting and line breaks that the user has added. 

I do not know when the line breaks will be its just a large text field that the user can input comments in, and they may need to use the enter key to generate a new line.


Can anybody offer any assitance?

Thankyou in advance,

Lewis Reed
Hi Experts,
     I would like to know the exact difference between 15 and 18 digits record id. Most of us say, 15 digit(case sensitive) and 18 digit(case insensitive).

Let's consider a small example,
While if you query record from Developer Console you will get 18 digit record id. Consider the below retrieved 18 digit id,

001i000001AWbWuGTA(Retrieved from query)

If 18 digit case insensitive means,

001i000001AWbWugta (this id same to the above retrieved ID)? If yes, then if you queried record with this id means, you will get no result or no rows found..!

So if both 15 and 18 are unique means what is the real time use and difference between these two ID's.

Thanks in advance..!