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

OnScan change text properties?

Hello, I am making an app that scans barcodes of parts in a factory. Their are two barcodes. The first is the a location code and the second is the actual part. I have attached a photo of a gallery in the app that shows different Locations and their respective parts. I was wondering if their was a way when a location or a part number is scanned that a strikethrough can be placed over the text in the gallery letting the user know that part or location has already been scanned? Let me know what you think any help is much appreciated!

 

GalleryCapture.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: OnScan change text properties?

Hi @MaxWendorff ,

Do you want to record the values that have been scanned?

I've made a similar test for your reference:

1)find the value of barcode that was last identified by the scanner

LookUp(tablename,barcode=Barcode1.Text,loc)

2)save the scanned values to a collection

Collect(locvalue,{value:LookUp(tablename,barcode=Barcode1.Text,loc)})

3)Set the label in gallery

Strikethrough:  If(ThisItem.loc in locvalue.value,true,false)

 

Then, if the value exists in the collection, the value will have a strikethrough.

 

Here's a doc about scanner for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-barcodescanner

The scanner's text property is the only one that can represent the value that has been scanned.

 

 

Best regards,

Community Support Team _ Phoebe Liu

 

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
Community Support Team
Community Support Team

Re: OnScan change text properties?

Hi @MaxWendorff ,

Do you want to record the values that have been scanned?

I've made a similar test for your reference:

1)find the value of barcode that was last identified by the scanner

LookUp(tablename,barcode=Barcode1.Text,loc)

2)save the scanned values to a collection

Collect(locvalue,{value:LookUp(tablename,barcode=Barcode1.Text,loc)})

3)Set the label in gallery

Strikethrough:  If(ThisItem.loc in locvalue.value,true,false)

 

Then, if the value exists in the collection, the value will have a strikethrough.

 

Here's a doc about scanner for your reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-barcodescanner

The scanner's text property is the only one that can represent the value that has been scanned.

 

 

Best regards,

Community Support Team _ Phoebe Liu

 

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,874)