You need to sign in to do that
Don't have an account?
Swetha S415
Get related Account, Contact, Opportunity and Quote Records using maps.
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?
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?
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
All Answers
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
You can the related Account records as below:
Hope this will be helpful. Please try the code and let me know if any issues.
Thanks
Bhargavi.