function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
laytro1978laytro1978 

Visualforce and Apex code solution required

Hi,

 

Not sure the best way to go about this all ideas welcome.

 

I have a custom object called contact roles, it allows more functionality than the standard object.

 

The custom contact role object allows me to link a contact to an account.

 

On the account page I want to create a visual force page that brings back all the linked contacts and all of the accounts they are linked to.

 

For example I have Joe Bloggs who is linked to ABC company and XYZ company.  When I go onto ABC company I see a button called contact roles.  This would open a visual force page show Joe Bloggs associated to ABC company and it also needs to show what other companies such as XYS he is linked to.

 

Thanks in advance 

BeeddiskShahBeeddiskShah

This is the simple solution for the issue.

 

Build a custom visualforce page  with standard controller Accounts, on the page pass an Account ID using merge variables and javascript callout.

 

Then using the Account Object you can query the contacts and also Accounts.

 

Do you need a developer to code this for you?

 

Let me know,

 

Siddhesh Kabe,

http://force.siddheshkabe.co.in

laytro1978laytro1978

Thanks for the information, I am not sure how merge variables work.

 

Could you provide some sample code to get me started?

 

Anything you can do would be much appreciated.

 

Thanks in advance

mm123mm123

 

Pleas drop an email to discuss the solution for your requirements.

 

MV

nj.tech@hotmail.com