check box select or select all in table with pagination Data Action when i select specefice element check box or select all and navigate to next page in pagination and return again to last page all mark check will not marked
When you come back possibly there is a refresh data that is erasing all the data that you checked that's why it's not checked. To check all, you need/can update everything on the database and when you refresh you will see your data.
Look at this post
https://www.outsystems.com/forums/discussion/75036/how-to-save-previous-page-checkbox-data-when-we-click-on-pagination/
In the post, I am just giving an example (and I am using aggregate the logic will be the same for data action) of what to do when you select only one record, but you can do the same but you will need to loop all the data from the data and update the boolean field to true.
Regards,
Márcio
Data action not same aggregate can you provide oml using data action
Sure.
Also you can learn a lot from this article
https://itnext.io/paginating-sorting-and-filtering-data-from-a-data-action-f5cb997fdc60
I have put the feature to do select all.
Every time you save something you need to go to your local variable and update the data there at the same time you update on database.
Here to update only one record I use the list index of to know where is the position of the record I want to update
And then I update the record using the ListIndexOf.Position
The same will happen for the select all, but in this case, I am going to loop all data to update either when it happens pagination or to update on database or for the current page that the user is.
Have a look at the OML
Kind Regards,