+ 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.
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)

Joseph FerraroJoseph Ferraro

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