cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
considerITman
Level: Powered On

Patch then navigate

Hi folks,

 

I use Patch on the submit-button of an edit form. Right after the patch, a navigation event is supposed to happen.

Basically:

Patch(Stuff to be patched);Navigate(Screen to be navigated to)

 

This is not what happens, though. The patch works and the data is commited to my datasource, but the navigate never happens - the app just stays on the current screen (the one with the edit form).

 

Does anyone have an idea what that could be?

1 ACCEPTED SOLUTION

Accepted Solutions
PedroViviani
Level: Powered On

Re: Patch then navigate

I think you are missing a semicolon (need to use 2), it should be:

Patch(what you want to patch);;Navigate(where you wanna go)


View solution in original post

4 REPLIES 4
KimberlyM
Level 8

Re: Patch then navigate

Here is what I have working in my app. Not 100% sure what you have going on but maybe try adding the screen transition.

Patch(SharePointList,CurrentSelectedItem, {

   //Stuff to patch

});

Navigate( Dashboard, ScreenTransition.Fade )

PedroViviani
Level: Powered On

Re: Patch then navigate

I think you are missing a semicolon (need to use 2), it should be:

Patch(what you want to patch);;Navigate(where you wanna go)


View solution in original post

considerITman
Level: Powered On

Re: Patch then navigate

Thanks for taking a swing at it, but the transition didn't change anything 😐

Highlighted
considerITman
Level: Powered On

Re: Patch then navigate

Two semicolons. I would never have thought of that!
Found this post on the topic, too: 
https://powerusers.microsoft.com/t5/General-Discussion/Two-Functions-in-Button/m-p/14129#M6198
Thanks for the help!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,155)