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 😐

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,819)