You need to sign in to do that
Don't have an account?
ArmanM
Get related object info
H,
I have a object called Media_Deliverable__c that has master detail relationship with Media_Plan__c.
In Media_Plan__c I have a button that renders as PDF. I need to get information from its related list items from Media_Deliverable into this PDF as well. How can I do this?
Thanks,
Arman
I have a object called Media_Deliverable__c that has master detail relationship with Media_Plan__c.
In Media_Plan__c I have a button that renders as PDF. I need to get information from its related list items from Media_Deliverable into this PDF as well. How can I do this?
Thanks,
Arman
Hi Arman,
Code will look like this.
put the constructor code in your controller. And use childLs to display for records.
Please let me know if this works.
Thanks,
Manohar
All Answers
Hi Arman,
Make a visual force page that renders as a pdf and in the controller get the id of the current page. Then query the realted list and display.
Please let me know if this hepls.
Thanks,
Manohar
Hi Arman,
Code will look like this.
put the constructor code in your controller. And use childLs to display for records.
Please let me know if this works.
Thanks,
Manohar
After doing so, I am getting 'unexpected token: 'List'' error in line 6. Not sure why this is happening?
My bad, forgot to put new.
childLs= new List<Media_Deliverable__c >();
pls try this.
In this master-detail relationship:
Media_Plan__c is the parent/master
Media_Deliverable__c is the child/detail
Should I change Media_Plan__r to Media_Plan__c?
yes try...