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
secondImage

New Return to Workplace

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

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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