public class contactLists {
public List<Account> getAccounts(){
return [select id,name,(select id, FirstName,LastName from Contacts) from Account where id in (select accountid from contact where accountid!=null )];
}
}
if you have any issue , please let me know!!
Kindly mark my solution as the best answer if it helps you.
public class contactLists {
public List<Account> getAccounts(){
return [select id,name,(select id, FirstName,LastName from Contacts) from Account where id in (select accountid from contact where accountid!=null )];
}
}
if you have any issue , please let me know!!
Kindly mark my solution as the best answer if it helps you.
you can use below code for your requirment:-
VF page:-
if you have any issue , please let me know!!
Kindly mark my solution as the best answer if it helps you.
Regards
Mukesh
All Answers
You might want to refer the below link which has what you want.
http://www.infallibletechie.com/2012/11/tree-view-in-visualforce-page.html
Hope the above answer helps and please mark as correct answer so others can benefit from it.
you can use below code for your requirment:-
VF page:-
if you have any issue , please let me know!!
Kindly mark my solution as the best answer if it helps you.
Regards
Mukesh