I have a form that displays a data table containing 2 columns: Include? and Location. The first table cell contains a checkbox that indicates whether the user has chosen to include that location in the content of another screen. There is a GetRecord Action pulling include and location from a datasheet that contains the userid, location, and an include column. If the include = 1, then the checkbox displays checked. If the include = 0, then the checkbox displays unchecked. When I change a checkbox on this screen and click the submit button, the change takes affect and the results are what I expect.
However, what I'm trying to do is add a text widget within the section this table is in called Select All that, when clicked, checks all of the boxes on the display screen, but doesn't update the datasheet. Likewise, a text widget called Un-Select All that, when clicked, unchecks all of the boxes. I don't want the changes to take affect in the datasheet until the user clicks the Submit button.
I've tried using alternate views of the table section but when I run the simulation and click Select All, the screen refreshes and the alternate view displays, but in the datasheet, the value of the include column has changed to a blank. As soon as I click either one of these text widgets, the screen refreshes, but the checkboxes are blank. The datasheet changes the include to a blank even though the Submit button was never pressed. Once it blanks out this include field, I cannot change the field value even if I check the checkbox on screen and submit. How can I get the text widgets to update the screen, but not commit the change to the datasheet until the user clicks a button?
Recent Comments