You need to sign in to do that
Don't have an account?

map with vf page
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
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
PS: if this answers your question then hit Like and mark it as solution!