+ Start a Discussion
Dan_CDan_C 

Custom Object Field History Tag?

What is the reference lable for a custom object field history object? Say I've created an object called "Test Object", I've tried every variatiopn of reference lables to the History table I can think of.

 

example: <apex:relatedList list="Test_Object_History__r"/> does not work.

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
Dan_CDan_C

Unfortunatley <apex:relatedList list="Histories"/> does not work.

 

My question actually got answered in a different post.

http://boards.developerforce.com/t5/Visualforce-Development/History-related-List-using-Visualforce/m-p/156208/highlight/true

 

Thanks for your effort though.

All Answers

sravusravu

Hi Dan,

 

My Best Suggestion is to look into the Schema of your instance in Eclipse IDE and find your custom object and under childrelationships for that object you will find <customobject>History. You can get the relationship name from there.

 

Hope this helps you.

Dan_CDan_C

Looked at the relationship in the IDE already. It titles the relationship "Test_Object__History" with the relationship name simply "Histories". Neither of these lables work in a related list tag nor any variation that I could think of. I've appended __r at the end of every combo you could make out of those words and got nothing.

 

Thanks for trying though Sravu

 

 

sravusravu

try using

 

<apex:relatedList list="Histories"/>

Dan_CDan_C

Unfortunatley <apex:relatedList list="Histories"/> does not work.

 

My question actually got answered in a different post.

http://boards.developerforce.com/t5/Visualforce-Development/History-related-List-using-Visualforce/m-p/156208/highlight/true

 

Thanks for your effort though.

This was selected as the best answer