List <SelectOption> recTypeList = new List <SelectOption>(); for (RecordTypeInfo info: Case.SObjectType.getDescribe().getRecordTypeInfos()) { if(info.isAvailable()) { recTypeList.add(new SelectOption(info.getRecordTypeId(), info.getName())); } }
List <SelectOption> recTypeList = new List <SelectOption>(); for (RecordTypeInfo info: Case.SObjectType.getDescribe().getRecordTypeInfos()) { if(info.isAvailable()) { recTypeList.add(new SelectOption(info.getRecordTypeId(), info.getName())); } }