Select multiple lines in data grid

This is to enable multiple row selection on the data grid.

  1. Open the configuration of the data grid and click on the Rows tab.
  2. Select Multiple row selection.
  3. Click the Toolbar tab.
  4. Add a button to use for running the API transaction multiple times.
  5. Specify the ID, label, style, and icon.
  6. 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.
  7. To ensure that the configuration in the data grid is applied, click Save on the application.
  8. 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.
  9. 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.
  10. 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.