function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
tamiaramtamiaram 

How to read a Map object from a visualforce page?

Hi,

 

I need some help here.

 

Is there a way I can get information from a Map[String, List<SObject>] from my visual force page?

 

I mean. Is there a way I can write a repeat tag, in order to go throuht the a list, depending on an identifier. 

 

Let my code talk for me. This is how I image it:

 

 

 

<apex : repeat value='{!idList}' var='id'>

<apex : repeat value="{!map.get(id)}" var='x'>

 <apex : outputLabel value='{!x.Name}' />

</apex : repeat>

</apex : repeat>

 

 

Thanks a lot for your any help you can provide.

 

Cool_DevloperCool_Devloper

You have to use Wrapper Class to build a custom list which will have one key value and then a set of related values/objects as you require!

 

Cool_D

crmdeveloper6crmdeveloper6
Could you please provide an example on this?