Ariser
0
Q:

retrieve fields from multiple objects into visualforce

public class myController{

     public ObjectA__c myA      {get;set;}
     public ObjectB__c myB      {get;set;}

     public myController(){
          myA = new ObjectA__c();
          myB = new ObjectB__c();
     }

     public void saveObjects(){
          insert myA;
          myB.ObjectA__c = myA.Id;
          insert myB;
     }

}
0

New to Communities?

Join the community