Hi,
I was checking the employees app in the sample project, learning about user buttons and processing rows.
I found that the "Process" button just add new rows to the list, but never clear its, so pressing it two or more consecutive times just keep adding rows, even duplicated ones, to the list (mantained in a global var by the app).
This obviously can cause errors if the process updates or modify the database based on the selections.
As a workaround I'm clearing the global variable used to store the list, in the onEndProcessRows.
Regards,
Yes, it was actually designed that way to allow paging and maintaining the selected items of previous pages. But your solution is fine to reset the selected values. Depends on what you require.