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
Salesforce_krprSalesforce_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>
Ashish_SFDCAshish_SFDC
Hi , 


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