+ Start a Discussion
rajasfdcrajasfdc 

how to put record type in vf page?

i mean to say.i have technical and non techincal types in customization .each one have different values.we have to use for differntiate these technical and non technical by using record type coming to vf page how to differ the technical and non technical.and how to put these in vf page .please clarify these .

thanks in advacne

 

S91084S91084

If you are trying to display the list of record types on the visualforce page associated to the object, you can query the record type as follows

 

List<RecordType> lst = [Select r.SobjectType,  r.Name,  r.IsActive, r.Id, From RecordType r where SobjectType='<object name>'];