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

Variable

I've set a variable making use of Navigate('Scan Admin Screen', ScreenTransition.Cover, {ScanAdmin: DataCardKey28})

 

It pulls through to mentioned screen DataCardValue19.Text & "_" & ScanAdmin.Text

 

Everything appears to be working perfectly, but when I publish the app the Variable does not show the specific text?

 

The TextField shows "DataCardValue19(Content)_" but the last part(ScanAdmin variable) is missing or not showing at all?

 

Why is this?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Variable

@Andries1 

You are getting this error because you have several instances of ScanAdmin within your app that store variables of differing data types.  There are only 2 solutions:

 

  • Change the context variable ScanAdmin to a different name in that instance
  • Go through your entire app and make sure ScanAdmin always evaluates to Text

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: Variable

@Andries1 

This code is missing a reference to the Text property of the DataCardKey and therefore will not return anything.  Please make the following change.

 

Navigate('Scan Admin Screen', ScreenTransition.Cover, {ScanAdmin: DataCardKey28.Text})

 

Please also note, you are creating ScanAdmin as a context variable so it will reset to Blank() when the user navigates away from 'Scan Admin Screen'.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Helper I
Helper I

Re: Variable

I thought so much as well, but when I entered the below I get the following error?

Highlighted
Super User
Super User

Re: Variable

@Andries1 

You are getting this error because you have several instances of ScanAdmin within your app that store variables of differing data types.  There are only 2 solutions:

 

  • Change the context variable ScanAdmin to a different name in that instance
  • Go through your entire app and make sure ScanAdmin always evaluates to Text

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,587)