Create Check Box Dynamic id

Create Check Box Dynamic id

  
Hi,
  I would like to:
  1. Read records from a table
  2. display the records on the screen
  3. I am having checkbox within list records.
  4. allow user  to select and deselect checkbox
  5. On checkbox click i want to call javascript funtion in which i am generating coma seperated string with tabel records' id.
Please tell me how i can generate dynamic id of checkboxes so that i can get each checkbox value.

Thanks
Harsha B
I haven't tried this but here's how I would approach it.

1) Create a structure that has all the fields from your table that you want to show and be sure to include the ID even if you do not show it
2) Add a field to the structure, a boolean, that will link to the check box
3) Create a record list with a type of the structure you created
4) In your preparation, use a for each loop to add records to the record list of structure records based on a query of the table data
5) Use the Edit Table widget to show the structure list, using a check box for the boolean field
6) When the user submits the changes, call a screen action that use a for each loop to go through the boolean values and create your string of IDs using functions in the Text extension - no javascript needed

Hope this helps,
Curt