Using Patch and Submit button

%3CLINGO-SUB%20id%3D%22lingo-sub-169863%22%20slang%3D%22en-US%22%3EUsing%20Patch%20and%20Submit%20button%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-169863%22%20slang%3D%22en-US%22%3E%3CP%3EHey%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20a%20multi-screen%26nbsp%3Bapp%20setup%20that%20functions%20as%20an%20entry%2Fedit%20for%20a%20list.%20I've%20set%20up%20the%20Patch%20function%20in%20OnSave%20to%20handle%20this%2C%20but%20when%20editing%20it%20just%20submits%20a%20new%20entry...I'd%20like%20it%20to%20edit%20the%20existing.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%26nbsp%3Bis%20my%20function%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3EPatch('Traffic%20Processing%20Requests'%2CDefaults('Traffic%20Processing%20Requests')%2CScreen1.Updates%2CScreen1_1.Updates%2CScreen1_2.Updates%2CScreen1_3.Updates%2CScreen1_4.Updates%2CScreen1_5.Updates%2CScreen1_6.Updates%2C%20Form1.Updates)%3BExit(false)%3C%2FPRE%3E%0A%3CP%3EThanks%20for%20any%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-169863%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-169922%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Patch%20and%20Submit%20button%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-169922%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20what%20I%20want%20to%20do...I%20have%20to%20figure%20out%20how.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fpowerusers.microsoft.com%2Ft5%2FGeneral-Discussion%2FUsing-the-Patch-function-to-either-create-OR-update-a-record%2Fm-p%2F52339%23M21835%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpowerusers.microsoft.com%2Ft5%2FGeneral-Discussion%2FUsing-the-Patch-function-to-either-create-OR-update-a-record%2Fm-p%2F52339%23M21835%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hey, 

 

I have a multi-screen app setup that functions as an entry/edit for a list. I've set up the Patch function in OnSave to handle this, but when editing it just submits a new entry...I'd like it to edit the existing. 

 

Here is my function:

 

Patch('Traffic Processing Requests',Defaults('Traffic Processing Requests'),Screen1.Updates,Screen1_1.Updates,Screen1_2.Updates,Screen1_3.Updates,Screen1_4.Updates,Screen1_5.Updates,Screen1_6.Updates, Form1.Updates);Exit(false)

Thanks for any help.

1 Reply
Highlighted