Friday, 10 August 2012

Field sets

*Field set is nothing but set of fields like(First Name, Last Name, Username).
*If we use field sets on VF page without modifying VF code Admin can rearrange, delete, add fields to the field set.
*We can use field set on VF page using $ObjectType global variable.

<apex:page standardController="Contact">

<apex:repeat value="{!$ObjectType.Contact.Fieldsets.propernames}" var="f">

<apex:outputText value="{!Contact[f]}"/>

</apex:repeat>

</apex:page>

No comments:

Post a Comment

Labels