You need to sign in to do that
Don't have an account?
Salesforce_krpr
Map Iteration in Visualforce PageBlockTable
I have a Map<Id,Map<String,String>>
I need to iterate through this map in Visualforce PageBlockTable.
How do I Iterate this in PageBlockTable?
I was able to iterate using <apex:repeat>
I need to iterate through this map in Visualforce PageBlockTable.
How do I Iterate this in PageBlockTable?
I was able to iterate using <apex:repeat>
See the below sample,
<apex:page controller="NestedMapController" >
<apex:pageBlock id="results2">
<ul>
<apex:repeat value="{!ListofString1Entries}" var="i">
<li>outer key: {!i}</li>
<ul>
<apex:repeat value="{!ListofString2Entries}" var="j">
<li>inner key: {!j}</li>
<ul>
<li>{!objectMap[i][j]}</li>
</ul>
</apex:repeat>
</ul>
</apex:repeat>
</ul>
</apex:pageBlock>
http://salesforce.stackexchange.com/questions/8667/displaying-a-mapstring-mapstring-object-in-visualforce-page
Also see the below link ,
http://blog.wdcigroup.net/2012/10/iterating-a-map-in-visualforce-page/
Regards,
Ashish