• Lucky29
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi,
I am having small problem with map collection class.


Sample code :

controller name  : cntrl

maps<id,CustomObject__c> map =new maps<id,CustomObject__c>();
                  //some code

public maps<id,CustomObject__c> getmap()
{

for(CustomObject__c  ojb : [select id ,name , email from CustomObject__c])
              //some code

map.put(obj.id,ojb)


}


apex 

<apex:page standardcontroller="contact" controller="cntrl >

//some code

<apex:repeat value="{!map}" var="tst">
.
..
.
.
.
</apex:repeat>

Now what i need is ...I want to fetch all the value from the map in apex:repeat section...like obj.name and obj.email of custom object..
so can any one help on this ..


thanks
Hi,

string namevf=name;

            For(Contact objContact:[SELECT  :namevf,id,MailingStreet,MailingCity,MailingCountry,MailingState FROM Contact])
            {
          
          //some code
            
            }

in the above code , I want to replace  ":namevf" with "name"(or any other API name) if I store the API name in another string variable ...
can any one help me on this......
  • September 18, 2014
  • Like
  • 0
HI,
I have created a flow and to customize the flow ,i have created a vf page with the controller. So can anyone tell me that how to write a test class to call the flow ...?
Hi,

string namevf=name;

            For(Contact objContact:[SELECT  :namevf,id,MailingStreet,MailingCity,MailingCountry,MailingState FROM Contact])
            {
          
          //some code
            
            }

in the above code , I want to replace  ":namevf" with "name"(or any other API name) if I store the API name in another string variable ...
can any one help me on this......
  • September 18, 2014
  • Like
  • 0