5

I cannot find anything equivalent to:

<apex:relatedList list="ProcessSteps" />

which works for Approvals.

The only solution I can think of is to build a controller/extension that gets the raw history data (from MyObj__History) and write my own page elements to render it in a table. Is there a neater solution?

3 Answers 3

3

I don't believe there is a simple solution by just utilizing apex:relatedList. The way I have done it has always been a custom solution.

I would check out this link for more information on how to do it with a custom component.

3

Spring '17 (API v39.0)

The Histories relationship works for custom objects: <apex:relatedList list="Histories"/>.

I couldn't find it mentioned in the release notes. Thanks for forum user sgkmills for pointing it out.

2

I agree, I believe you need to create your own History Related List in VF. Iterative Logic has created a good article that details how to create a History Related List of your own.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .