You need to sign in to do that
Don't have an account?
mahesh reddy 4
Need to display all fields?
I have created three custom objects all are linked using master detail relationship(one is master and two are childs.). How can i display all the fields of three objects in a single vf page? Any help please?
public class MyMainClass {
public List<MyWrapper> myWrapperList {get; set;}
//Wrapper class
pubilc class MyWrapper {
public Account acc {get; set;}
public contact con {get; set;}
public case cs {get; set;}
//Constructor
public MyWrapper (Account acc, Contact con, Case cs) {
this.acc =acc;
this.con =con;
this.cs = cs;
}
}
First populate the wrapper list i.e. myWrapperList as per your requirment.
Then bind it to VF page for displaying values.