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
Max641Max641 

Accessing Picklist Values

Can anyone point me to some example Apex code that performs a lookup of the metadata definition of an object?
 
I've searched through the documentation and the best I can come up with is that SControls use describeSObject... but I haven't been able to find an example show how this might be made to work in the controller of vPage.
 
My objective is to be able to create a list of valid picklist values and/or record types.
 
Thanks!
Leah_SeatleLeah_Seatle
The current release of Apex does not support lookup of metadata. The next release will support it.
lnryanlnryan
Does this mean it's not currently possible to discover the number of fields returned by a SOQL query? I want to have a generic vf component that will generate a column for each field of whatever SOQL query the parent object passes in...is there an alternate way to grab this information after the fact?