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
Joseph FerraroJoseph Ferraro 

apex getdescribe() question

Hi, i'm building a custom report wizard using VF and I need to generate the list of fields for an object.  ive been reading up on apex's describe/sobject methods, but I haven't found a piece of sample code that shows how to iterate the describe result of fields, so that I could add them to a vf selectoptions component.  Can someone point me in the right direction?

Thanks in advance.
jlojlo
Apex Describe documentation:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dynamic_describe_objects_understanding.htm (link)
 
Potentially useful Java sample code:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_describesobject.htm#kanchor427 (link)
Jon Mountjoy_Jon Mountjoy_
You should check this out - it grabs all the fields (and puts them in a spreadsheet)

http://wiki.apexdevnet.com/index.php/Google_Data_APIs_Schema_Demo
Joseph FerraroJoseph Ferraro
Jon,

I actually found that right before your post and it's exactly what I needed.

Thanks!