Explain apex Variable tag with an example?

590    Asked by DorothyChurchill in Salesforce , Asked on Jan 12, 2020
Answered by Vikram Choudhary

public class apexVariableExample {

public List getShowAccount(){

List lstAcc=new List([select id,name,rating,industry,(select name from contacts) from Account where rating!=null]);

 return lstAcc;

    }

}



   

   

   

           

                {!i}

               

           

           

       

         

           

       

         

               {!x}

               

           

           

       

   




Your Answer

Answer (1)

Sorry are these lines of your code missing or broken? I tried it but it didn't work from melon sandbox

4 Months

Interviews

Parent Categories