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
gdkgdk 

Picklist search

Hi,

  I created one Picklist on vf-page and I added all Field names of an object into that picklist, when I select one field name from that Picklist i want to dispaly " Field Name, Field Label, Field Type, and Field Length " in PageBlockTable format with in the page itself.

sfdcfoxsfdcfox
Schema.DescribeFieldResult des = Schema.getGlobalDescribe().get(ObjectName).fields.getmap().get(fieldname).getdescribe();

From des, you can call a variety of functions:

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_fields_describe.htm