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
KeithJKeithJ 

Cannot output Opportunity Field History Related List

Hi there. On examining the schema explorer, I find that Opportunity has a child relationship called

Histories. Now, when I add the following line of code to my visualforce:

 

 

<apex:relatedList list="Histories" />

 I get an error when my visualforce page is loaded stating:

 

'Histories' is not a valid child relationship name for entity Opportunity

 

Any ideas what's going on here? I can make other related lists appear but not this one....

Thanks

 

 

Best Answer chosen by Admin (Salesforce Developers) 
Venkat PolisettVenkat Polisett

 

Field history related lists are discussed here: http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=3331

 

After that look here for fixing the Field data type value : http://forums.sforce.com/sforce/board/message?board.id=Visualforce&message.id=5354&query.id=74907#M5354

 

 

Per the above link, you need to rollout your own. An example was provided in that.

Message Edited by Venkat Polisett on 01-29-2009 10:28 AM
Message Edited by Venkat Polisett on 01-29-2009 10:29 AM

All Answers

JimRaeJimRae

I believe this will only work if you have the related list displayed on the default page layout for the object..  I recall this being discussed on the boards before.

 

KeithJKeithJ

Thanks for the reply Jim.

As it stands, this related list is actually included on the page layout...

Very strange. The other option would be to create the list manually but I want

to exhaust all options before I consider this.

 

Regards

Venkat PolisettVenkat Polisett

 

Field history related lists are discussed here: http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=3331

 

After that look here for fixing the Field data type value : http://forums.sforce.com/sforce/board/message?board.id=Visualforce&message.id=5354&query.id=74907#M5354

 

 

Per the above link, you need to rollout your own. An example was provided in that.

Message Edited by Venkat Polisett on 01-29-2009 10:28 AM
Message Edited by Venkat Polisett on 01-29-2009 10:29 AM
This was selected as the best answer
KeithJKeithJ

Wow! Not as straight forward as i thought.

Thanks for the reply