public with sharing class ContactsVisualforceController {
public list<Account> displayAccounts {get; set;}
public ContactsVisualforceController(){
displayAccounts = [select id,name,(select id,name from Contacts) from Account];
}
}
public with sharing class ContactsVisualforceController {
public list<Account> displayAccounts {get; set;}
public ContactsVisualforceController(){
displayAccounts = [select id,name,(select id,name from Contacts) from Account];
}
}
VFP
Controller :
All Answers
Please have a look into below link and let me know if you needany thing.
https://developer.salesforce.com/forums/?id=906F000000096qGIAQ
The above code is written in apex repeat .but i need it using pageblocktable
Hope you are doing well..!!
Please Try below Code:
Make Sure After preview Add ?id=0012v00002jrjfdAAA
Here 0012v00002jrjfdAAA is my Account Id
Hope this will help you.
Mark It as best Answer if you resolve it.
Thanks,
Foram Rana
VFP
Controller :