cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RvdHeijden
Post Patron
Post Patron

Removing a value from a Form

Goodday, im facing an error which I can't figure out

 

I have a form based on a SP list and one of those datacards displays a Date field from my SP list.

That specific field has an date value in it, when editing that field and removing the current value and then saving the form results in the value that I just deleted to be shown again as soon as I hit the Save button

 

This is the formula i've been using:

Patch(
  'FttH Engineerings checklist_1';
  LookUp('FttH Engineerings checklist_1';'Id (ID)'=GalProjecten.Selected.'Id (ID)');
 FormAlgemeen.Updates;
 FormOntwerpDossier.Updates;
 FormLowLevelDesign.Updates;
 FormVergunningen.Updates);;
  Notify("Wijzigingen zijn succesvol verwerkt";Success);;
ViewForm(FormAlgemeen);;
ViewForm(FormOntwerpDossier);;
ViewForm(FormLowLevelDesign);;
ViewForm(FormVergunningen)

 

This formula worked in my other apps but not in this one, not yet anyway. Actually when pressing save it now returns an error "Network error when using using the function patch" 

 

I've already turned on the experimental feature for error logs and restarted the app but nothing works, any ideas ?

 

2 REPLIES 2
RvdHeijden
Post Patron
Post Patron

This is weird.....

 

When I delete the part referencing the FormVergunningen.Update the formula works and the values are being deleted.

So something is wrong with that part of the formula, anyone any ideas ?

 

Patch(
'FttH Engineerings checklist_1';
LookUp('FttH Engineerings checklist_1';'Id (ID)'=GalProjecten.Selected.'Id (ID)');
FormAlgemeen.Updates;
FormOntwerpDossier.Updates;
FormLowLevelDesign.Updates;
FormVergunningen.Updates);;

Notify("Wijzigingen zijn succesvol verwerkt";Success);;
ViewForm(FormAlgemeen);;
ViewForm(FormOntwerpDossier);;
ViewForm(FormLowLevelDesign);;
ViewForm(FormVergunningen)

Drrickryp
Super User
Super User

@RvdHeijden 

Based on your description, the culprit appears to be a date field on FormVergunningen.  Check the Update property of the card containing that date control for the problem.  

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,366)