cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jindrich
New Member

Barcode app for rewriting parts of a code.

Hello.

I have a question: I'm creating an app for a waste barcode. And I have to rewrite the barcode with the button. This means that you need to scan the barcode because it is bad in the database and you need to change several pieces of code.

 

Example: I have a code (000067049A 240) and need to overwrite the code by selecting 80 (80 liter bin) from the options list and the code will be changed to (00006709A 80) and then saved to excel.

 

Thank you in advance for your reply Jindra.

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @jindrich ,

Do you want to change the barcode scanner scanned value from "000067049A 240" to "00006709A 80"?

If so, I use "BarcodeScanner1.Value" to represent  the barcode scanner scanned value "000067049A 240".

Then try this formula to modify scanned value:

Concatenate(
            Left(First(Split(BarcodeScanner1.Value," ")).Result,7),
            Right(First(Split(BarcodeScanner1.Value," ")).Result,2),
            " 80"
            )

 I see "00006709A 80" as three parts: "0000670","9A" and " 80".

 

 

Best regards,

Community Support Team _ Phoebe Liu
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

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @jindrich ,

Do you want to change the barcode scanner scanned value from "000067049A 240" to "00006709A 80"?

If so, I use "BarcodeScanner1.Value" to represent  the barcode scanner scanned value "000067049A 240".

Then try this formula to modify scanned value:

Concatenate(
            Left(First(Split(BarcodeScanner1.Value," ")).Result,7),
            Right(First(Split(BarcodeScanner1.Value," ")).Result,2),
            " 80"
            )

 I see "00006709A 80" as three parts: "0000670","9A" and " 80".

 

 

Best regards,

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,727)