Hello,
I need help in the usage of the Patch function please.
My goal is to override a field in a database table with the value "not available" if another field is not empty.
This shall happen after a form is submitted and the code I have so far is on the Onselect Property of a button:
UpdateContext({EME_MitarbeiterVar:DataCardValue56});
SubmitForm(EditMitarbeiterEinheitForm);
If(EME_MitarbeiterVar <> "", Patch(Einheit, Defaults(Einheit), {Status:"Vergeben"}));
Back();
I am not quit sure also how I can define the dataset I want to update in the Patch function because I think like this it would override all datasets, doesnt it?
Any help is much appreciated!
best regards Leon