+ Start a Discussion
Collen Mayer 6Collen Mayer 6 

Multiple Records on VisualForce Page

All,
I currently have a ClientBilling object that is the child of the parent ClientCase (MasterDetail).  I have a visualforce page that creates an invoice from a Detail Page Button for the clientcase, pulling all clientbilling entries for a given clientcase. 

I'm wondering how I might go about creating multiple clientcase invoices from a button or tab.  For example, in visual force create invoices for ALL clientcases with status field marked "active."  What would the SOQL look like in this case (pulling all billing items for clientcases with active status)?  Also can someone given an example of how I might do the nested loop in my visual force (looping through clientcases and then looping through billing item of each clientcase)?

If anyone can get me started I woudl be most grateful!

Best,
Collen
Best Answer chosen by Collen Mayer 6
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Collen,

May I request you to please refer the below link for reference. I hope it will be helpful.

Best Regards
Rahul Kumar

All Answers

Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Collen,

May I request you to please refer the below link for reference. I hope it will be helpful.

Best Regards
Rahul Kumar
This was selected as the best answer
Collen Mayer 6Collen Mayer 6
Great reference.  Thanks for this.