Skip to main content
Swetha S が「#Apex」で質問
Hi All,

Could you please help me out how to achieve the below scenario using maps concept.

Scenario :

Having 4 object ===> Accounts, Contacts, opportunity and Quotes.

Accounts will have lookup to only Contact.

Contact will have lookup to only Opportunity.

Opportunity will have lookup to only Quote.

Create a visualforce page such that while on account search related contacts records should be displayed, if Contacts has opportunity records then those records to get displayed if it has none records nothing to get displayed. Similarly for opportunity has quote record those to be displayed.

Can anyone achieve this functionality by using Maps Concept? 

 
2 件の回答
  1. 2018年9月18日 11:34
    Hi Swetha,

    I trust you are doing very well.

    Please refer to the below blogs which has sample code which might help you with the above issue. Kindly try to implement according to your requirement.

    http://forceschool.blogspot.com/2011/06/show-hierarchy-in-visualforce-page.html

    http://www.forcetree.com/2011/04/tree-view-in-visualforce-page.html

    http://salesforceblogger.blogspot.com/2012/03/hierarchy-in-visualforce.html

    I hope it helps you.

    Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.

    Thanks and Regards,

    Khan Anas
0/9000