Select multiple lines in data grid
This is to enable multiple row selection on the data grid.
- Open the configuration of the data grid and click on the Rows tab.
- Select Multiple row selection.
- Click the Toolbar tab.
- Add a button to use for running the API transaction multiple times.
- Specify the ID, label, style, and icon.
-
On the Button status drop down, you
can select when to enable the button.
The option Enabled when only one row is selected enables the button when only one row is selected, and disables the button when no row or multiple rows are selected.The option Enabled when one or more rows are selected enables the button when one or more rows are selected, and disables the button when no row is selected.
- To ensure that the configuration in the data grid is applied, click Save on the application.
- Create a data service with an API transaction to run for all the selected rows. On the transaction configuration, under the Properties tab , click on Multiselect configuration and then select the relevant data grid under the Component drop down. Finish the rest of the transaction configuration and save the changes.
- Connect the created data service to an operation in the data grid and add an interaction that runs the operation when you click on the toolbar button.
- Select multiple rows in the data grid by pressing the Shift or the Ctrl button. Then, click on the rows you want to select with the mouse.