cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

Global Variable and calling

using when the app open "OnStart"

 

Set(MyVar,User().Email)  

 

I place a textbox on the form and set its Default  to     MyVar

 

But will not pull value ?

 

Dave

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

A few possible solutions.

  • In the Studio, you can click on the ellipsis (...) next to App in the tree view, and 'Run onStart' to populate the variable
  • If you are using a Label control, then use the Text property and make sure you are calling the variable MyVar and not "MyVar" (which is a string)
  • If you are using a Text input contorl, then use the Default or Text properties, and make sure you are calling the variable directly as MyVar and not "My Var" (which is a string)

This scenario is common, and will work as expected.

View solution in original post

1 REPLY 1
Super User II
Super User II

A few possible solutions.

  • In the Studio, you can click on the ellipsis (...) next to App in the tree view, and 'Run onStart' to populate the variable
  • If you are using a Label control, then use the Text property and make sure you are calling the variable MyVar and not "MyVar" (which is a string)
  • If you are using a Text input contorl, then use the Default or Text properties, and make sure you are calling the variable directly as MyVar and not "My Var" (which is a string)

This scenario is common, and will work as expected.

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (20,815)