You need to sign in to do that
Don't have an account?
pradeep kumar yadav
Accessing .isAccessible, .isCreateable, .isDeleteable fields on VF page
I created a list of type
List< Schema.DescribeFieldResult> fieldDetail
It holds all field related detail to a Object and Use this list in pageBlockTable.
<apex:pageBlockTable value="{!fieldDetail}" var="od">
<apex:column value="{!od.Label}" headerValue="Label"/>
<apex:column value="{!od.Name}" headerValue="API Name"/>
<apex:column value="{!od.Type}" headerValue="Type"/>
<apex:column value="{!od.Createable}" headerValue="isCreatable"/>
</apex:pageBlockTable>
all three columns Label, Name, Type give show result, but when I add isCreatable column, It gives ERROR
Unknown property 'Schema.DescribeFieldResult.Createable'
Error is in expression '{!od.Createable}' in component <apex:column> in page objectdetail
Can anyone help to show this column on VF page.........
I have an alternative of Wrapper class but I want show using upper Method...
List< Schema.DescribeFieldResult> fieldDetail
It holds all field related detail to a Object and Use this list in pageBlockTable.
<apex:pageBlockTable value="{!fieldDetail}" var="od">
<apex:column value="{!od.Label}" headerValue="Label"/>
<apex:column value="{!od.Name}" headerValue="API Name"/>
<apex:column value="{!od.Type}" headerValue="Type"/>
<apex:column value="{!od.Createable}" headerValue="isCreatable"/>
</apex:pageBlockTable>
all three columns Label, Name, Type give show result, but when I add isCreatable column, It gives ERROR
Unknown property 'Schema.DescribeFieldResult.Createable'
Error is in expression '{!od.Createable}' in component <apex:column> in page objectdetail
Can anyone help to show this column on VF page.........
I have an alternative of Wrapper class but I want show using upper Method...
$ObjectType[sObjectName].fields[fieldName].createable
All Answers
$ObjectType[sObjectName].fields[fieldName].createable