Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Menu component to set a variable to some value..

In order to optimize my App, i'm trying to use varibles to "re-use" some screens. 
ButtonAdd (Set var to 1) -> navigate(Screen 1)-> Select the item -> (Screen10)
ButtonRemove (Set var to 2) -> Navigate (Screen 1) -> Select the item -> (Screen 7)


And based on the var value i'll go to some screen . 

The problem is: how can i use a component to set an value  for my var, i'm using clearcollection to make my menu..

Dual Super User II
Dual Super User II

Hi @VieiraGuilhermo 


Not sure I understood your question accurately.

But I did a video walkthrough of building a nav component. 

Hope this helps.


If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Reza Dorrani, MVP

Hi @RezaDorrani, i actually used your video to build my side menu (i just tweaked a few things), your video is awesome, but it doesnt help me with my "set var" problem. Still, thanks for the help. 
My screen 1, is a screen were shows all my items.


          Set(Var; "1");;Navigate(Screen 1)
          Set(Var; "2");;Navigate(Screen 1)
          Set(Var; "3");;Navigate(Screen 1)​


So, when i select my item, based on what my var value, it will navigate me to some screen. 


      If (Var = "1"; Will open an screen to edit that item; if(Var = "2"; Will open an screen were i can proceed to checkout ; If (Var = "3"; Will open an option to delete that item;false)))


 Even if the screen (screen 1) & the gallery is the same, it will lead me to a diferent function. 

To do this in buttons, gallerys and things like that, is quite simple, the problem it to do this in a in an component like ours. Because or tab menu, isnt an object, Do you know if i can use my clearcollection to set my var as an value?

Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,973)