You need to sign in to do that
Don't have an account?
bhanu reddy 24
how to show 3 objects data in data table by using visualforce page
how to show 3 objects data in data table by using visualforce page
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
If you have then it depends how the objects are related to each other.
Case 1 :- 1 Parent and 2 Childs Objects
List<ParentObject__c> parentObjList = [Select id,name, (select id,name from ChildObj__r),(select id,name from ChildObj2__r) from ParentObject__c] ;
Case 2 :- Grand Parent > Parent > Child
List<ParentObj__c> parentObjList = [Select id,name,grandParent__c,grandParent__r.name,(select id,name from Child__r) from ParentObj__c];
Case 3 :- 2 Parents and 1 Child Objects
List<ChildObj__c> childObjList = [select id,name,parent1__c,parent1__r.name,parent2__c,parent2__r.name from ChildObj__c];
Also use relationship names while using inner queries.