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
mallikharjunarao gundamallikharjunarao gunda 

duplicate names

hai hall


ihave a two account records with the same name but when i try to diaplay those records on vfpage avoid the duplicate names 
 how we can achieve please helpme
ManojjenaManojjena
Hi  mallikharjunarao,

You can try like create a map of String and account means Map<String,Account> and in constructor try to iterate the list of account and construct the map by adding name to the key and record to the value and use map in vf page .

Check below link which wil help you to use map in Vf page .
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_maps_lists.htm
Let me know if it helps !!!
Thanks
Mnaoj