If you are passing AccountId in URL. Please follow below steps:
1: Create controller for the vf page. 2: In constructor query all the contact with which is child of AccountId which you are getting from URL parameter. Example: String strAccountId = apexpages.currentpage().getparameters().get('AccountId'); List<Contact> lstContacts = [Select Id, Name,AccountId From Contact Where AccountId =: strAccountId ]; 3: In vf page use 'lstContacts' to display contacts.
Please mark as Best Answer. :)
Thanks,
Veda
All Answers
If you are passing AccountId in URL. Please follow below steps:
1: Create controller for the vf page.
2: In constructor query all the contact with which is child of AccountId which you are getting from URL parameter.
Example:
String strAccountId = apexpages.currentpage().getparameters().get('AccountId');
List<Contact> lstContacts = [Select Id, Name,AccountId From Contact Where AccountId =: strAccountId ];
3: In vf page use 'lstContacts' to display contacts.
Thanks,
Vedashri
Are you able to solve ? Please let me know if you need more information or help on this.
Thanks,
Vedashri
Veda Hebbar
Please mark as Best Answer. :)
Thanks,
Veda
veda Hebbar