You need to sign in to do that
Don't have an account?
Javaid Hussain
Am I getting this error when I run following code? Insufficient Privileges Errors.
<apex:page sidebar="false" showHeader="false" standardController="Account">
<apex:pageBlock title="Registration">
<apex:pageBlockSection title="Related Info" columns="1">
<apex:outputField value="{!Account.Name}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Related Info" columns="1">
<apex:relatedList list="Cases"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
<apex:pageBlock title="Registration">
<apex:pageBlockSection title="Related Info" columns="1">
<apex:outputField value="{!Account.Name}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Related Info" columns="1">
<apex:relatedList list="Cases"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Thanks for your reply, I checked I'm using "System Administrator" and it has full access on visual force pages.
Can you please review my code, I want to show the "relatedList" of Cases.
Refer the below link and modify the code as per your need.
https://www.mstsolutions.com/technical/custom-related-list-using-visualforce-and-apex/
Thanks!!
I am having the same issue, connected as a system admin and getting "Insufficient Privileges" error
when I am using 'case' as standardController then I am able to see the 'case' details, however 'case' as a relatedList is raising error
<apex:page standardController="Account">
<apex:pageBlock title="Account Registration">
<apex:pageBlockSection title="General Info" columns="1">
<apex:outputField value="{!Account.Name}"/>
<apex:outputField value="{!Account.Phone}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Cases Info" columns="1">
<apex:relatedList list="Cases"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>