function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mahi1mahi1 

How can we get field length in a pageblocktable

Hi,

i want to add one more column to pageblocktable with the name of "Field Length" ,

How can i get field length in that column.....

 

<apex:page standardController="objectName" sidebar="false">
<apex:pageBlock title="Fields in Proper Names">
<apex:pageBlockTable value="{!$ObjectType.objName.FieldSets.empfield}" var="f">
<apex:column headervalue="Field Name" value="{!f}"/>
<apex:column headervalue="Field Label" value="{!f.Label}"/>
<apex:column headervalue="Data Type" value="{!f.Type}" />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>