You need to sign in to do that
Don't have an account?
SPrashant
Creating PickList of All Objects in the Org
Hi,
I am having a requirement to create a PIckList of All the Objects (Custom , Standard) in the org.
This picklist will be part of a Visualforce page which will only be accessible by Admin.
The picklist options will have API names of the Objects as the Value and Object name as Label
that is
options.add(new SelectOption(<API Name of the Object>, <Object Label>));
Any help is highly appreciated. Thanks in advance.
Thanks Alok,
The answer you suggested is a feasiable.but my problem statement does not permit Custom Setting approach ! :smileyindifferent:
Need some dynamic solution related to Org Metadata so that any change done to objects is automatically reflected. I mean to say is there any apex code to fetch all the Object Name and label to put it in SelectOption List ????
Hi Prashant,
Here is the sample code. Let me know if you have any difficulties to implement the same.
Regards,
Kamlesh