You need to sign in to do that
Don't have an account?
Displaying all record types under the selected object in vfpage.
Hi all,
1. Actually i displayed all the objects in vf page in picklistform.
public class objectList{public string pname{set;get;}public string pvalues{set;get;}public String val {get;set;}public List<SelectOption> getName() { List<Schema.SObjectType> gd = Schema.getGlobalDescribe().Values(); List<SelectOption> options = new List<SelectOption>(); for(Schema.SObjectType f : gd) { options.add(new SelectOption(f.getDescribe().getLabel(),f.getDescribe().getLabel())); } return options; }
}
<apex:page controller="objectList" sidebar="false" > <apex:form > <apex:SelectList value="{!val}" size="1"> <apex:selectOptions value="{!Name}"></apex:selectOptions> <apex:actionSupport event="onchange"/> </apex:SelectList><br/><br/><br/> </apex:form></apex:page>
2. suppose if some objects contains record types then i want to display all the record types of that object under the selected object. any one can u help me.please send me the extended functionality.
Thanks in advance.
anu
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_describesobjects_describesobjectresult.htm#i1428028
This contains info that will should help you