cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DAVIDPOWELL
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
GarethPrisk
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
GarethPrisk
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
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

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (19,262)