119
Views
5
Comments
How can I implement a bulk checkbox select on Reactive?
Application Type
Reactive

There's an article on the web kinda explaining how to do it but it lacks a few details.

 I want to have an option to select multiple users/rows (checkbox). 

The selection must be limited to a number of rows. 

On the top of the table include a checkbox to “Select All” the rows in the table. If all lines are selected this checkbox need to be selected, if one row is not selected this check box will be not selected and if is selected and then unselected all checkboxes will be unselected. 


bulk.png
2023-08-28 09-08-29
Venkatesh Sundarajan

Hi Gabriel,

I have done the sample application based on your requirement, please check.

Attached the OAP file. 

Hope this helps.

TextArea.oap
2021-10-27 13-44-12
Gabriel Freitas

I'm sorry, i guess i expressed myself wrong, the problem involves a table with sorting and pagination, not a list. I don't believe that would work for that case...

2023-08-28 09-08-29
Venkatesh Sundarajan
2022-07-03 17-24-08
Sourabh sharma

Hi Gabriel Freitas

As per your requirement i have try for you kindly go through the demo and see the code via OML.

I hope this ll help you!!!

kind regards


Demo for you

SelectCheckBoxOneOrMore.oml
2021-10-27 13-44-12
Gabriel Freitas

Sourabh this gives some really good ideas but it still lacks a few things:

when i select a row and change pagination then i come back to that page the row is no longer selected;

select all checkbox doesn't deselects all;

when i select all row by row select all checkbox doesn't checks;

both yours and Venkatesh's examples make direct access to backend, the idea is to create a list of selected ids on the frontend and send it to be processed on the backend.

Anyway, thanks in advance

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.