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
Joey HoJoey Ho 

Customize Entitlement Related List in VisualForce

Hi All, 

 

I am having problems when I am running thi VisualForce page.

 

The error I am getting is "Unknown property 'AssetStandardController.entitlement'".

 

I am wondering if anyone has come across this problem or can identify why my code is not working?

 

<apex:page standardController="Asset" showHeader="true" > <apex:messages />
   <apex:form >
   <apex:detail relatedList="false" inlineEdit="true"/> 

  <apex:pageBlock> 
       <apex:pageblockTable title="Entitlements" value="{!entitlement}" var="e">
           <apex:column value="{!e.Name}"/> 

      </apex:pageblockTable> 
  </apex:pageBlock>
</apex:page>

 However if I was to get rid of the pageBlock code and use "<apex:relatedList list="Entitlements"/>" this works fine.????

 

Thanks for your help

Joey HoJoey Ho

Hi All, 

 

It appears I've just realised my silly mistake.

 

The pageBlockTable simply needs to be <apex:pageblockTable title="Entitlements" value="{!asset.entitlements}" var="e">.

 

Thanks for your attention though!

 

Feel free to give me some pointers if there is any.