You need to sign in to do that
Don't have an account?
wattss
Adding Approval History block to a custom page
I am in the process of developing a custom page in place of the standard for a custom object.
So far I have been able to display the data for the custom object on my custom page. However, I would like to use on my custom page are some of the standard blocks such as Activity History, Approval History and Notes & Attachments.
I believe I saw somewhere, a while ago when researching something else, on the Salesforce site how to do this but have been unable to find the resource again.
Is this possible and how can it be done?
Hi,
Please check couple of below syntaxes to add standard related lists:-
<apex:relatedList list="OpenActivities"/>
<apex:relatedList list="ActivityHistories"/>
<apex:relatedList list="NotesAndAttachments"/>
<apex:relatedList list="ProcessSteps"/>
Also, you can find lists names in 2 ways:-
1)From Force.com IDE(Eclipse)
2)Setup > App Setup > Develop > API and click the link the for the enterprise WSDL. Go to the parent object definition and look through the items that are typed "QueryResult". These are the API names which you will need to use for your relatedList.list attribute.
Related thread link is :-http://community.salesforce.com/sforce/board/message?board.id=Visualforce&thread.id=3040&view=by_date_ascending&page=1
Thanks,
Vimal
Force.com Certified Salesforce.com Developer
All Answers
Hi,
Please check couple of below syntaxes to add standard related lists:-
<apex:relatedList list="OpenActivities"/>
<apex:relatedList list="ActivityHistories"/>
<apex:relatedList list="NotesAndAttachments"/>
<apex:relatedList list="ProcessSteps"/>
Also, you can find lists names in 2 ways:-
1)From Force.com IDE(Eclipse)
2)Setup > App Setup > Develop > API and click the link the for the enterprise WSDL. Go to the parent object definition and look through the items that are typed "QueryResult". These are the API names which you will need to use for your relatedList.list attribute.
Related thread link is :-http://community.salesforce.com/sforce/board/message?board.id=Visualforce&thread.id=3040&view=by_date_ascending&page=1
Thanks,
Vimal
Force.com Certified Salesforce.com Developer
Vimal,
Thank you for the reply. That worked a treat.
You mentioned that it is possible to get the list names from the Force.com IDE(Eclipse). So far I haven't out how to get that. Please could you advise.
I must be having a bad hair day as I am also now able to generate the enterprise WSDL, unless that is not available from the Developer edition.
Thanks.
Steve