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
GirinoobGirinoob 

How to show history related list of an custom object in visual force page?

Hi Guys,
I have enabled history tracking for a custom object called "xyz__c" and enabled history tracking for a custom field in xyz__c object. So, now i created a visulforce page where i need to show history related list in it.
How do i do it ?
I tried :
<apex:relatedList list="xyz__History" />
<apex:relatedList list="xyz__Histories" />
But, none of them worked.

I want to show related list without using Apex Class.

Best Answer chosen by Admin (Salesforce Developers) 
Avidev9Avidev9
Well I dont think so. Atleast am not aware of any options available

All Answers

Avidev9Avidev9
Have a look at this http://boards.developerforce.com/t5/Visualforce-Development/History-related-List-using-Visualforce/m-p/156208/highlight/true.

You have to make use of GenericHistoryComponent to make this work on a vf
GirinoobGirinoob

Thank you for the reply.

But, I would like know if there is any possibility of doing it without using Apex Class.

Avidev9Avidev9
Well I dont think so. Atleast am not aware of any options available
This was selected as the best answer
Maros SitkoMaros Sitko
try just <apex:relatedList list="Histories" /> if you use for page standardController of xyz
GirinoobGirinoob

<apex:relatedList list="Histories" /> didn't work.

Thank you for the reply.