function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anu deep 6anu deep 6 

display record

dear experts plz help me

Create a VF page which list all accounts in  a table with a check box infront of every row.   Display two check boxes Opportnities and contacts and one submit button, on click of it should  show the opportunitie/contact list or both according to the selection.
every id column in all tables should point to detail record. Opportunities and contacts should be editable and saved at a time on click of 'Save Opportunities','Save Contacts' button.
SandhyaSandhya (Salesforce Developers) 
Hi Anu deep,

You need to use a wrapper class for that.Please refer below links on how to use wrapper class and sample example.You will be able to get through with the modifications.

https://developer.salesforce.com/page/Wrapper_Class
 
https://success.salesforce.com/answers?id=90630000000hSoLAAU
 
http://www.sfdcpoint.com/salesforce/wrapper-class-in-apex/
 
Hope this helps you!

Please mark it as solved if this helps you!

Thanks and Regards
Sandhya
anu deep 6anu deep 6
HI sandhya

Thanks for your reply,I am clear with wrapper,but exact requirement is

1.)disaplay  account records with check box infornt of it.-->I did it
2.)dispaly palin text opportunities and contacts with check boxs.-->i did it
3.)create one submit button.--->i did it
 now if we select few check boxs of account records
 and check box of opportunity ,then all opportunity records related to that selected accounts has to be dispalyed.

 now if we select few check boxs of account records
 and check box of contact ,then all contact records related to that selected accounts has to be dispalyed.

 now if we select few check boxs of account records
 and check box of contact  and opportunity then all contact and opportubity records related to that selected accounts has to be dispalyed.

please help me out.