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

set labels with QR content

I have a screen with a scanner control I need to scan the content of the QR code and show in the LABELS

 

How do I achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: set labels with QR content

Hi @King ,

 

Are all your results in the same text formula like: "A B"/"C D"/"E F"? If so, then you can achieve this using the Split function and split the result with blank space.

 

In Label1, set below formula:

First(Split(Scanner1.Value," ")).Result

In Label2, set below formula:

Last(Split(Scanner1.Value," ")).Result

Regards,

Mona

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

View solution in original post

3 REPLIES 3
Highlighted
Helper IV
Helper IV

Re: set labels with QR content

I did it by placing Barcode Scanner. the problem is that all the QR information is repeated in the tags The code has a name and a code. for example Name Jhon Code 123acf and on the label it appears: JHON 123ACF The result I expect is separately in one tag the name and in another tag the code How do I achieve this?

Highlighted
Community Support
Community Support

Re: set labels with QR content

Hi @King ,

 

Are all your results in the same text formula like: "A B"/"C D"/"E F"? If so, then you can achieve this using the Split function and split the result with blank space.

 

In Label1, set below formula:

First(Split(Scanner1.Value," ")).Result

In Label2, set below formula:

Last(Split(Scanner1.Value," ")).Result

Regards,

Mona

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

View solution in original post

Highlighted
Helper IV
Helper IV

Re: set labels with QR content

Hi @v-monli-msft 

 

It works with 2 fields but what happens if the QR contains 7 fields and I want each field in different labels as I would apply the formula in case I need it in the future?

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

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

Top Solution Authors
Top Kudoed Authors
Users online (5,725)