You need to sign in to do that
Don't have an account?
nagalakshmi
displaying accounts and contacts at a time in same visual force page
Hi,
I want to display the account records and related contacts for each account record in a visual force page.
I am reach the requirement through command links that is iam displayed the accounts in visual force page and if we click on any account that will display the related contacts. but now i want to display each account record and related contacts line by line with line seperation for every account and contact record group. please any one help me how to solve these
Does it means a output will be something like below?
Account 1 Title
First Name LastName Phone Email
xxx xxx xxx xxx
Account 2 Title
First Name LastName Phone Email
xxx xxx xxx xxx
I think you can create a visualforce component which will display list of contacts.
Hope this is pretty simple jon using standard functionality.
And in your list page loop through accounts and call visualforce component.
Let me give a try for this.
Hi laxman,
I too need same requirement,But the page should be like below
Account 1 title
Contact1
Contact2
.
.
.
Account 2 title
Contact1
Contact2
Contact3
.
.
.
like this...
So please can you help me out.....???
Thanks & Regards
Raju.B
Hi,
i want the requirement like which has posted by raju.
thanks,
Lakshmi.
Sure Raju will post code later today.
try the following code:
Apex Class :
Visualforce Page:
What if you expanded this to add more contact info details? I am trying to make a contact table in my visualforce page or somehow embed the contacts tab in the page..
Thank you