Hi! I want to update the excelfile with the updated values from the text input. How do I write the Patch formula correct? I tried with this but I'm not sure what I do wrong..
Patch(Booking, ThisItem.'Booking (Name)', {Januar: TextInput2.Text})
Solved! Go to Solution.
Hi @Janni29
The problem is likely in the second element of your patch statement. The patch specifies three things, first, the dataset being patched, second, the record being patched, and third the Item in the record being patched. ThisItem.'Booking (Name)' seems to be ambiguous. It should reference a record in your dataset like Patch(Booking, Lookup(Booking, ID=Gallery1.Selected.ID), {Januar: TextInput2.Text}). The lookup should reference a unique value in the dataset like ID and a reference to the Control containing the selected record.
Hi @Janni29
The problem is likely in the second element of your patch statement. The patch specifies three things, first, the dataset being patched, second, the record being patched, and third the Item in the record being patched. ThisItem.'Booking (Name)' seems to be ambiguous. It should reference a record in your dataset like Patch(Booking, Lookup(Booking, ID=Gallery1.Selected.ID), {Januar: TextInput2.Text}). The lookup should reference a unique value in the dataset like ID and a reference to the Control containing the selected record.
Hi @Drrickryp,
Thank you for your reply. I'm still not getting it right.. Is it correct to use the LookUp function like this?
Patch(Booking,LookUp(Booking, Name=Label6.Text),{Januar:TextInput2.Text})
Looks good.
Do you get an error message?
Maybe don't use the play-mode inside the power apps studio. Open the App on its own to get an error message.
I think I was mixing the fieldname and Source filename, had the same "names". It is working now. Thank you!
User | Count |
---|---|
183 | |
124 | |
88 | |
45 | |
43 |
User | Count |
---|---|
247 | |
156 | |
127 | |
78 | |
73 |