Select All List View Items

I would like to build a checkbox that allows you to select all rows populated in a listview (List View) component and then take action on those selected rows. Has anyone accomplished this?

Use Case:

Filter for a subselection of inventory from the postgres DB, populate in listview (because "prettier" than table"), select all and then click button to add these selected items to an order postgres database.

Guten nachmittag @sabrina_de, welcome to the community :hugs:

You have access to your list views data via listView.data which you can use to loop over the items in the component and trigger other queries.

If you want to select some items in the listview, add a checkbox to each item and now you can filter that in a JS query to further trigger other queries. Read more here.

Does that work for you?

1 Like

I will check this out, thank you so much.