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

About Scanning in Canvas

Screen Shot 2562-06-25 at 09.17.21.png

 

Im stuck with this problem for awhile. When I scan the Qr code with has somebody name, if the name that I scan math with the data name that I have, when I click  (>) it shiuld nevigate to that persone DetailScreen1.

 

However, my problem is when I click (>) it's go to someonelses DetailScreen1.

 

If("Jame" exactin Table1.Nam , Navigate([@DetailScreen1]), UpdateContext({pop: true}) )

This is my code. "Jame" is in my data table. So, when the condation is true, like I said, when I click (>), it go to someelse detailscreen1. If I want to Navigate to "Jame" DataScreen what should I do? 

Any suggestion? 

 

1 REPLY 1
Community Support Team
Community Support Team

Re: About Scanning in Canvas

Hi @Premwong13 ,

Could you please share a bit more about your issue?

Do you create a Detail screen for each user in your Table within your app?

Further, could you please show more details about the Detail screen within your app? Do you add a Display form within it? Do you add the ">" icon within a Gallery?

 

I assume that you add a Display form within your Detail screen, is it true? Within your Detail screen, please set the Item property of Display form to following:

LookUp(Table1, Nam = "Jame")

Set the OnSelect property of the ">" icon to following:

If("Jame" in Table1.Nam , Navigate(DetailScreen1), UpdateContext({pop: true}) )

 

If the name value is captured from the Barcode scanner control, please take a try with the following workaround:

Set the OnScan property of the Barcode scanner control to following:

Set(CurrentName, BarcodeScanner1.Value)

Set the OnSelect property of the ">" icon to following:

If(CurrentName in Table1.Nam , Navigate(DetailScreen1), UpdateContext({pop: true}) )

Within your Detail screen, please set the Item property of Display form to following:

LookUp(Table1, Nam = CurrentName)

 

In addition, if you add a Gallery control within your app to list the retrieved users, please take a try with the following workaround:

Set the OnScan property of the Barcode scanner control to following:

Set(CurrentName, BarcodeScanner1.Value)

Set the Items property of the Gallery to following:

Filter(
Table1,
If(
IsBlank(CurrentName),
true,
Nam = CurrentName
)
)

Then within your Detail screen, set the Items property of the Display form to following:

Table1               /* <-- Bind your Display form to Table1 */

please set the Item property of Display form to following:

Gallery1.Selected

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,459)