Hi
I have a fairly complex web dialog control with some header fields and a repeating section. The form uses javascript to populate the repeating section based on selections made in a 3-tiered grid in a pop-up window. The 3-tiered grid starts with a list of tool groups - the selection of a tool group updates a linked grid with tool categories and a selection in the tool category grid updates a linked grid with tool types in the selected category. When the user clicks on a selection in the tool types grid, the code either adds a new repeating section line with that tool type or updates the count on an existing repeating section line if the tool type is already in the repeating section.
When the dialog opens initially, the {dialog.Object}.deleteRepeatingSectionRow(sectionName) method runs to delete the initial repeating section row so the user starts with a blank form. Alpha does not prompt to confirm the delete of this first repeating section row and I would assume that it is because the row is not yet dirty.
When the user makes a selection in the pop-up grid, the code adds a record to the repeating section and then populates it with data from the grid row (as explained above).
When the user presses the reset button on the main dialog, the dialog header fields are emptied and the repeating section lines are emptied. However, I would like to have the reset button "remove" the repeating section rows and not just empty them.
I have added some javascript to iterate through the active repeating section rows to delete them but when I use the {dialog.Object}.deleteRepeatingSectionRow(sectionName) method in this case, Alpha prompts for confirmation to delete each repeating section row. I would assume that this is because the rows are now dirty. How do I delete all the repeating section rows without having to confirm the delete of each one?
Thanks,
Peter
I have a fairly complex web dialog control with some header fields and a repeating section. The form uses javascript to populate the repeating section based on selections made in a 3-tiered grid in a pop-up window. The 3-tiered grid starts with a list of tool groups - the selection of a tool group updates a linked grid with tool categories and a selection in the tool category grid updates a linked grid with tool types in the selected category. When the user clicks on a selection in the tool types grid, the code either adds a new repeating section line with that tool type or updates the count on an existing repeating section line if the tool type is already in the repeating section.
When the dialog opens initially, the {dialog.Object}.deleteRepeatingSectionRow(sectionName) method runs to delete the initial repeating section row so the user starts with a blank form. Alpha does not prompt to confirm the delete of this first repeating section row and I would assume that it is because the row is not yet dirty.
When the user makes a selection in the pop-up grid, the code adds a record to the repeating section and then populates it with data from the grid row (as explained above).
When the user presses the reset button on the main dialog, the dialog header fields are emptied and the repeating section lines are emptied. However, I would like to have the reset button "remove" the repeating section rows and not just empty them.
I have added some javascript to iterate through the active repeating section rows to delete them but when I use the {dialog.Object}.deleteRepeatingSectionRow(sectionName) method in this case, Alpha prompts for confirmation to delete each repeating section row. I would assume that this is because the rows are now dirty. How do I delete all the repeating section rows without having to confirm the delete of each one?
Thanks,
Peter
Comment