• Hariharan ramya
  • NEWBIE
  • -2 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 7
    Replies
Hello All,

I have googled for $A and $A.Util in lightning unfortunately i couldn't get proper explaination/info. Can anybody please explain thoroughly with examples.

Adv Thanks,
VSK98
  • March 01, 2018
  • Like
  • 0
Hi Experts,
I need to create a trigger on account object which will prevent the users in creating duplicate account based on the name.
Kindly provide me the same.

Regards.
Hello friends,

I've been trying to check this challenge but without luck,it is giving me this error: Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.QueryException: unexpected token: Status
.

I don't know what I am doing wrong. Here is my  Visualforce page code

<apex:page controller="NewCaseListController">
    <apex:form >
        <apex:pageblock Title="New Case List" id="cases_list">
        <apex:repeat var="case" value="{!newCases}">
            <apex:outputLink value="/{!case.Id}">
            ID: {!case.Id}
           
            </apex:outputLink><br/>
            <apex:outputLink value="/{!case.Id}">
            
            Case Number: {!case.CaseNumber}
            
            
            </apex:outputLink><br/>
                          
                    
           </apex:repeat>
        </apex:pageblock>
    </apex:form>
    
</apex:page>

and here is my Controller class code:

public class NewCaseListController {
    public List<Case> getNewCases() {
        List<Case> results = Database.query('Select Id,CaseNumber,Status' +
                                            'From Case' +
                                            'Where Status =\'New\'');
        
 
        return results;
}
}



Hope someone can help me with this, Thanks a lot.
Hi,
I have created opportunity which is there, visible and stage set to prospecting. When trying to complete Trailhead, I receive an alert "The '500 units' opportunity could not be found, or its stage is not set to 'Prospecting".
My colleague, who is SE and who just passed his certification on this area could now figure what is wrong. Any ideas / support?
Thanks!
-riikka
Challenge Not yet complete... here's what's wrong: 
The 'Acme Corporation' account record could not be found
I was solving the challenge of trailhead of Apex development:

The question was:
Create an Apex class that returns an array (or list) of formatted strings ('Test 0', 'Test 1', ...). The length of the array is determined by an integer parameter.The Apex class must be called 'StringArrayTest' and be in the public scope.
The Apex class must have a public static method called 'generateStringArray'.
The 'generateStringArray' method must return an array (or list) of strings. Each string must have a value in the format 'Test n' where n is the index of the current string in the array. The number of returned strings is specified by the integer parameter to the 'generateStringArray' method.

My code is:


public class StringArrayTest {

    static List<String> TestArray= new List<String>();
    public static String[] generateStringArray(Integer n){
        
        for(Integer i=1;i<=n;i++){   
            TestArray.add('Test'+i);
        }
        
        return TestArray;
    }
    
}

I am able to get desired outpuut but still it is returning an error:
Challenge not yet complete... here's what's wrong: 
Executing the 'generateStringArray' method failed. Either the method does not exist, is not static, or does not return the proper number of strings.

Not able to understand what it want exactly