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
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,125)