You need to sign in to do that
Don't have an account?

custom picklist.???
I am new to apex....i want to create Custom Picklist in whick i want all the fields of lead....Please tell me the code what should i write...Help will really be appreciated...!!!
you will need to use a describe call to get hold of all the fields on the Lead object. im assuming this is for a visualforce page - in which case you just wrap the field name in an apex:selectList / selectOptions
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dynamic_describe_objects_understanding.htm
eg