Greetings,
I am trying a very simple application, solely made of a button . On this button OnSelect(), I have the following code:
Patch('[Audit].[AgentTrigger]', First(Filter('[Audit].[AgentTrigger]', id=1)),{BackupLiveToDev:1})
Basically sending the value 1 to column BackupLiveToDev
Works the first time. Then it does nothing afterwards. I have to close the app and restart. The test steps I am doing are as follow:
- from the app, click the button, column is updated
- from ssms, i update the value back to 0
- from the app, click the button, nothing happens, column remains to 0 in the sql server table
So there seems to be a cache or data context that I am not managing.
It is a simple one-button app, no collection, no gallery. Learning purpose to grasp the methods to handle record outside of an editForm. I already have an app in production using editForm - but I want to learn how to use patch as well)
Regards,
Eric