Hi, let me outline this.
I've got an XPage that has a data table that is bound to a viewScope variable which contains an array of arrays. This viewScope variable is populated by running a SQL stored procedure with a sessionScope variable as parameter (and performing some manipulation of the JDBC results), all triggered in the afterPageLoad of the XPage. This has been in use and works fine.
However, I'm now adding another use that is similar; what I want to add is a checkbox for each row in the data table. The user should be able to check the rows he/she wants (or check all using some action), and then click an action that reads the checkboxes that are checked so that SSJS can use the corresponding data in the viewScope var to perform some back-end data manipulation.
What I'm struggling with is this: I thought I could add a checkbox control to the data table, bind it to a viewScope variable or something, then use those values (somehow) to identify the "rows" (of the viewScope var bound to the data table) that I need to operate on. But adding the binding makes the checkbox control disabled.
If I can't bind the checkbox and have it retain its editability (which I don't believe is the case, but if) perhaps I can leave it unbound and use client JS to set some hidden field value, and then my action can use that to operate??
Anyway, ideas are appreciated. I'll be trying a bunch of stuff in the meantime. Thanks.