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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (1,361)