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
PRepakaPRepaka 

how to assign a Map object to datatable

hi

 

Is it possible to assign a Map object to datatable in Visualforce page from Controller. till now i am able to assign a list to datatable. but now i have to assign a Map object to datatable. can u please tell me how to do this.

 

 

Thank u.

WesNolte__cWesNolte__c

Hey

 

You will need to convert the values in the map into a list. The good thing is that you can support a list of Apex types, so you could mimic Map behaviour with an Apex class, and pass this to the datatable(probably not necessary though).

 

Wes