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
dev401hasdev401has 

set the checkbox values in visual force page

Hi

 

I have a list of account. I want checkboxes in front of them and they should be checked if there are related opportunities in that account.

 

I have created a map of Id, Boolean. i want that to set in visualforce page.

I dont know what to mention in Apex:Page block table Value and in Input checkbox value.

suresh.csksuresh.csk

This is can be done using a Wrapper class method.

For example if your using the Account Object then you have to write a wrapper class for the Account in Apex code.

Have a look at the following link i think this is your need.

 

http://wiki.developerforce.com/index.php/Checkbox_in_DataTable

 

 

 

 

 

SriSaiSriSai

I'm new to coding and I was looking for such example.Thank's a lot for sharing.