<apex:DataTable value="{!data}" var="d">
<apex:column headerValue="Field Name">
{!d}
</apex:column>
</apex:DataTable>
</apex:page>
*******************************
public class FieldsClass {
public map<string,Schema.SObjectField> data {get;set;}
public FieldsClass (){
data = Schema.SObjectType.Book__c.fields.getMap();
}
}
No comments:
Post a Comment