cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tugba
Helper I
Helper I

How to use together Navigate and Set function in OnSelect button

In OnSelect button ı want to use Navigate and Set . Is it possible to use together navigate and set ?

Tugba

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

@tugba 

 

You can write your expression as:

Set(VarName, “Value”);Navigate(Screen1)

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
yashag2255
Dual Super User II
Dual Super User II

@tugba 

 

You can write your expression as:

Set(VarName, “Value”);Navigate(Screen1)

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

v-xida-msft
Community Support
Community Support

Hi @tugba ,

Could you please share a bit more about your scenario?

Do you want to pass a variable value from one screen to another screen?

 

If you want to use Navigate function together with Set function within the OnSelect property of a Button, please take a try with the following workaround:

Set the OnSelect property of the Button to following:

Set(Variable1, "Specific Value");
Navigate(AnotherScreen, ScreenTransition.None)

If you want to pass a variable value from one screen to another screen, I think the Navigate function could achieve your needs.

Set the OnSelect property of the Button to following:

Navigate(AnotherScreen, ScreenTransition.None, {ContextVariable1: "Specific Value"})

Then you could use ContextVariable1 within your another screen.

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,416)