cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DAVIDPOWELL
Level: Powered On

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
Level: Powered On

Re: Global Variable and calling

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
Level: Powered On

Re: Global Variable and calling

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,251)