I'm trying to "Set(ShowMenu, true)", on the "OnStart" property of the App (global). "ShowMenu" is already being declared on a local variable using "UpdateContext({ShowMenu: false})" on another screen.
I'm getting this: "Unexpected Characters. The formula contains Indent where Control is expected"
I'm assuming this is because of the scope conflict of these two variables.
I'm doing this because on the start of the App I have a lateral menu that should be hidden but is not.
Many thanks
Solved! Go to Solution.
From what I can see you have declared ShowMenu as a global variable on Appstart but as a local variable on your other screen. The UpdateContext function declares the variable as local, which means it can only be used on that screen.
Here is the documentation
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-updatecontext
From what I can see you have declared ShowMenu as a global variable on Appstart but as a local variable on your other screen. The UpdateContext function declares the variable as local, which means it can only be used on that screen.
Here is the documentation
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-updatecontext
That makes sense. It would be pointless to build a variable to be local, but still be accessible globally.
User | Count |
---|---|
221 | |
99 | |
94 | |
55 | |
36 |
User | Count |
---|---|
273 | |
104 | |
104 | |
60 | |
60 |