Hello.
I have a gallery that is used to export the selected item to CSV, the user can check a checkbox to change the item to ischosen true and the to allow them to export the selected items from the gallery to be exported to CSV.
OnChecked
Patch(colDWB, ThisItem, {IsChosen: true})
OnUncheck
Patch(colDWB, ThisItem, {IsChosen: false})
For testing purpose i have added the field IsChosed to the gallery.
When a checkbox is ticked it is changing this to true as yo can see on record 1321 and 1320
When i refresh the data it is then setting them all back to false, All as it should, Export working well, its sent to CSV then emailed on to a department mailbox everything is good.....
But the strange thing that i can not seem to workout is why the CheckBox is not remaining ticked, as you can see beow the ischosed firled is updating once the box is checked but then straight away it unticks.
If i click one or two items in the list then go back a re-check them then they stay ticked, seems to need a double click to accept but if i do that on one record and more to the next the first record then becomes unticked again.

So i changed the default on the checkbox to
If(ThisItem.IsChosen = "true",true, false)
after reading someone else post on here i tried the above to no success.
On a second point id like to add a tick box or button to select all, This way when the user filters to and from on the above filter and it displays the items only for the selected period they can the select all to export all those within the filter.
Many Thanks.