Another issue I'm having is related to a button in a Gallery Item. In the OnSelect I want to do Patch(Accounts, ThisItem, {Picked:True}) The Gallery is a Filtered version of my Accounts datasource.
I get an error when I do this though, saying that the column Picked doesn't exist. Also, the "Accounts" part doesn't change to the light blue colour, as though it can't see it in that context.
If I move to another screen and do Patch(Accounts, Gallery.Selected, {Picked:True}) it works fine.
Anyone know if it's possible to call patch in that scenario?
Hi @BigJohn
Yes, you are right.
If you want to call the same datasource in the gallery, you have to use disambiguation operator.
Best regards,
Sik
Turns out I had to use the disambiguation operator, so:
Patch([@Accounts], ThisItem, {Picked:True})
mmbr1606
22
Super User 2025 Season 1
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1