function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
i want use schema object
plz give me reference
Go through the following documentations :
http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_methods_system_sobject_describe.htm|StartTopic=Content%2Fapex_methods_system_sobject_describe.htm|SkinName=webhelp
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dynamic_describe_objects_understanding.htm
Also go through this is sample code to get picklist values using schema fucntionlity :
Visual force code:
<apex:selectList value="{!tgender}" size="1" styleclass="form-select">
<apex:selectOptions value="{!Gender}"/>
</apex:selectList>
Controller code:
public string tgender{get;set;}
/////*********** Retriving Gender Picklist *****************
public List<SelectOption> getGender()
{
if(strMsg == null)
options2.add(new SelectOption('','SELECT'));
Schema.DescribeFieldResult f = Contact.Gender__c.getDescribe();
List<Schema.PicklistEntry> ple = f.getPicklistValues();
for( Schema.PicklistEntry f1 : ple)
options2.add(new SelectOption(f1.getValue(),f1.getLabel()));
}
return options2;
Go through the following documentations :
http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_methods_system_sobject_describe.htm|StartTopic=Content%2Fapex_methods_system_sobject_describe.htm|SkinName=webhelp
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dynamic_describe_objects_understanding.htm
Also go through this is sample code to get picklist values using schema fucntionlity :
Visual force code:
<apex:selectList value="{!tgender}" size="1" styleclass="form-select">
<apex:selectOptions value="{!Gender}"/>
</apex:selectList>
Controller code:
public string tgender{get;set;}
/////*********** Retriving Gender Picklist *****************
public List<SelectOption> getGender()
{
if(strMsg == null)
{
options2.add(new SelectOption('','SELECT'));
Schema.DescribeFieldResult f = Contact.Gender__c.getDescribe();
List<Schema.PicklistEntry> ple = f.getPicklistValues();
for( Schema.PicklistEntry f1 : ple)
{
options2.add(new SelectOption(f1.getValue(),f1.getLabel()));
}
}
return options2;
}