cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DaynaLitherland
Helper I
Helper I

Set global variable to be a int which is populated from a parameter

Hello,

 

I want to pass in a parameter from my URL which would be a database Id number. However, when I set the variable using OnStart, it defaults to being text.

 

I set the variable by doing:

Set(startScreen, Param("ScreenId"));

 

But then I get errors about a mismatch in datatype. It sets the variable by default to be text, but I need it to be an int.

 

Many thanks!

Dayna

1 ACCEPTED SOLUTION

Accepted Solutions
RusselThomas
Microsoft
Microsoft

Hi DaynaLitherland,

 

You can try

Set(startScreen, Value(Param("ScreenId")))

Haven't tested this, but in theory it should work 🙂

 

Hope this helps,


RT

View solution in original post

2 REPLIES 2
RusselThomas
Microsoft
Microsoft

Hi DaynaLitherland,

 

You can try

Set(startScreen, Value(Param("ScreenId")))

Haven't tested this, but in theory it should work 🙂

 

Hope this helps,


RT

View solution in original post

Perfect, as always, a star! Thank you Russel!

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (53,426)