1

Can we display standard fields labels in vf page by using

<apex:column headervalue="{!$ObjectType.ABC__c.Fields.CreatedBy.Label}"> ?
1

The field API for CreatedBy is CreatedById so try this:-

<apex:column headervalue="{!$ObjectType.ABC__c.Fields.CreatedById.Label}">

| improve this answer | |
0

That particular standard field does not work as answered in Referencing the localized label for the standard CreatedBy relationship (localized version of "Created By"). But, for example, the standard Name field does work.

So the answer is "sometimes".

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.