Home › Forum › General › Programatically selecting all checkboxes in the rows of a table › Re: Programatically selecting all checkboxes in the rows of a table
I have a table, which gets populated automatically from a connect command. The table has a checkbox column, not checked by default, and a text input column which is read only displaying text. Basically, I am using the table object to allow the user to make multiple selections, in this case account numbers. I prefer to use this over the list object because I wanted to use a checkbox for the selection. I also wanted to have two buttons that would allow the user to select all or none. Right now I am at the point of creating the behavior for this “all” button. When the user clicks that button I want to go through each item in the table and set the column with the checkbox to checked. Vice versa for the “none” button.
With what I have tried so far with the set field command, it was removing all of the items in the list except the first one, which wasnt what i wanted. I also played around with the SetTableRow command but I wasnt able to figure out a way to get it to loop through all of the rows of the table and set the checkbox column to checked. There will be a variable number of rows in the table, depending on the person’s number of accounts.