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
public List<SelectOption> getTypesPicklist(){ Schema.sObjectType sobject_type = customObject__c.getSObjectType(); Schema.DescribeSObjectResult sobject_describe = sobject_type.getDescribe(); Map<String, Schema.SObjectField> field_map = sobject_describe.fields.getMap(); List<Schema.PicklistEntiris> picklistvalues = field_map.get('type__c').getDescribe().getPickListValues(); List<selectOption> options = new List<selectOption>(); for (Schema.PicklistEntiris a : picklistvalues) { options.add(new selectOption(a.getLabel(), a.getValue())); } return options;
<apex:selectRadio value="{!customObject__c.Type__c}"> <apex:selectoptions value="{!types}"></apex:selectoptions> </apex:selectRadio>
Use following methods to get options for radio button on page
Controller:
to use this on the page:
hope this will help.
Thanks
Vinod