Hi Everyone,
I am trying to build my first app and I am stuck on updating function of the form. The process is that when I select an entry on the gallery and click the Update Training button (refer on the screenshot) it will go to the update screen and form, but when I click the button with patch function an error shows that " network error when using patch function the requested operation is invalid".
Here is my code on the button for updating:
Patch(
'Training Tracker - DMC',
gal_ViewTraining.Selected,
{
'Name (Title)': txt_UpdateFullName,
'GPN #': txt_UpdateGPN,
Counselor: txt_UpdateCounselor,
'Date of Completion': dp_UpdateCompletionDate.SelectedDate,
Deadline: dp_UpdateDeadline.SelectedDate
}
)
I already searched same error message but it does not match my issue. I also have a form for adding entry it has same fields and same data source and it does not get that error message.
Thank you
Solved! Go to Solution.
Add this to the button where the 'Form' is:
SubmitForm(YourFormNameHere); ResetForm(YourFormNameHere); Back()
Do you have any screenshot of your work? (Regarding the error)
And just to make sure, you are selecting the item from the 'Gallery' than goes to another screen with the 'Form', and after that you want to use a 'Button' to update your data.
This is the gallery,
and when i click the update training button, this the draft form i created
then the button is the update, that is where i get the error.
Add this to the button where the 'Form' is:
SubmitForm(YourFormNameHere); ResetForm(YourFormNameHere); Back()
Hi RodCha,
The update is happening now but I dont know why the error message is still there. I also checked the SP list connected and it is also being updated as well. So I think I can close this topic now. Thank you again
User | Count |
---|---|
261 | |
110 | |
98 | |
56 | |
40 |