You need to sign in to do that
Don't have an account?
Sandra Rendel 7
Show related custom objects in account details page
I have 2 custom objects:
courses
assign courses (connect courses to contacts)
I need to show the list of courses which are related to the contacts of one account in its details page for instacne as a related list
courses
assign courses (connect courses to contacts)
I need to show the list of courses which are related to the contacts of one account in its details page for instacne as a related list
For this, you can create an Inline VF page using Account as Standard Controller. Create an Apex which will be used as Controller/Extensions and inside extensions you can write the logic for fetching the related courses and then can show into the VF page.
Add this VF page to Account Related Page.
Hope this will help :)
Thanks,
Amit Singh
Thanks for your guide, do you have a sample apex code for this
I would appreciate if if you ould help me about this
I have developed some sample code for you that is given below:
Apex Class:
VF page:
Result Image after adding Inline VF page.
Note: - In the solution, I have created a New Lookup field on Opportunity related to Contact Object and then showing all related Opportunity that is related to any Contact of particular opportunity