Hi,
I have a problem regarding the connection between a toggle-switch in a gallery and an sql database, which is managed with Microsoft SQL Server Management. I want to include an toggle in my gallery and switch the bit field with that toggle. Therefore I wrote an OnCheck:
Patch(table5;First(Filter(table5;'Person ID'=ThisItem.'Person ID')); {'To discuss':true})
and an UnCheck- function:
Patch(table5;First(Filter(table5;'Person ID'=ThisItem.'Person ID')); {'To discuss':false})
The field changes and I can see the powerapp working with the little dots at the top, but after a few seconds the toggle jumps back to its old position, any reason for that?
Thanks for your help!