• jerry22
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

hi everbody,

i know there are a lot of posts on child relationship name, but I still wasn't able to solve my problem:
I want to update my test-page to removing a unwanted related list from "Opportunitys". I want to remove "Contact Roles".

I tryed the following code:

<apex:page standardController="Opportunity">
<b>Hello {!$User.FirstName}!</b> <br/><br/>
<apex:detail relatedList="false" />
<apex:relatedList list="ContactRole" />   
</apex:page>

 

But I get this error:

'ContactRole' is not a valid child relationship name for entity Opportunity
Any Idea??

 

hi everbody,

i know there are a lot of posts on child relationship name, but I still wasn't able to solve my problem:
I want to update my test-page to removing a unwanted related list from "Opportunitys". I want to remove "Contact Roles".

I tryed the following code:

<apex:page standardController="Opportunity">
<b>Hello {!$User.FirstName}!</b> <br/><br/>
<apex:detail relatedList="false" />
<apex:relatedList list="ContactRole" />   
</apex:page>

 

But I get this error:

'ContactRole' is not a valid child relationship name for entity Opportunity
Any Idea??