You need to sign in to do that
Don't have an account?
Surjendu
Options available if dont want to use SelectCheckBoxes
The reason I dont want to use SelectCheckBox because I am not able to apply CSS on the SelectOptions. So I want to create a pageBlockList with relevant data for each record and
a checkbox for each record(for insert or delete the individual record).
If I do not want to use SelectCheckBox control of VisualForce and instead want to an iteration of checkboxes. Example
I have n records which are dynamic. That means I do not know how many records will be there. Its database driven.
UserName1 Email1 Phone1 CheckBox1
UserName2 Email2 Phone 2 CheckBox2
UserName3 Email3 Phone3 CheckBox3
................... ........... ........... ....................
In this case how do I find out which of the checkboxes are selected. And how do I send the array of selected checkboxes to the controller?
Can I use javascript? If yes, plz send me some code snippets.
a checkbox for each record(for insert or delete the individual record).
If I do not want to use SelectCheckBox control of VisualForce and instead want to an iteration of checkboxes. Example
I have n records which are dynamic. That means I do not know how many records will be there. Its database driven.
UserName1 Email1 Phone1 CheckBox1
UserName2 Email2 Phone 2 CheckBox2
UserName3 Email3 Phone3 CheckBox3
................... ........... ........... ....................
In this case how do I find out which of the checkboxes are selected. And how do I send the array of selected checkboxes to the controller?
Can I use javascript? If yes, plz send me some code snippets.
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&thread.id=691
-Jason
Message Edited by TehNrd on 03-12-2008 10:47 AM