Add check box in every row of gallery and use collection object to store selected record
lets say We have a canvas app and a gallery and we want to use some check box every row of the gallery so that we can do some bulk operation by selecting checkboxes and we will use a collection object to store the selected rows and un-selected rows.
Add a gallery and associate the Data source lets say Account. now select the first row of the gallery and insert a checkbox control. This will add a checkbox in all rows.
on the on checked action I have used a collect action to create collection object to add the selected rows in a collection. like that on un-checked action Remove function used.
Select the First checkbox and select Action menu and choose On Check and Write the Power FX to collect the selected row information in the collection object.
Collect(checkedRow,ThisItem)
Like that select On uncheck and write the Power FX to remove the selected item from the collection object.
Remove(checkedRow,ThisItem)
Now test this.
Select some rows and check the collection then unselect and test.
Remove one item and check collection.
Now we can use the collection to do bulk operations.
Hope his helps.