I have a simple canvas app that utilizes the Barcode Scanner to read a barcode and save the value to a Sharepoint text field. Some datamatrix barcodes, when scanned, recognize a special character at the beginning of the barcode that saves to the Sharepoint list. Upon copying and pasting the barcode string into Notepad++, the character is shows as "GS" which apparently translates to Group Separator. This behavior is only exhibited when scanning the barcode on Android devices. iOS devices seem to ignore this character when scanning using the camera.
Problem is when trying to scan that barcode on other screens to lookup the item. On Android it displays a network error, on iOS it simply doesn't find the record.
How can I configure the barcode scanner to ignore the GS special character (or maybe it's called a control character?)?
You would need to nest several substitutes within one another
Thank you. That worked. Is there a way I can substitute all special characters, not just 29?
If it is reading correctly from the barcode to powerapps (I am not honestly sure if it is without scanning it myself) you should be able to remedy it with something like
Set(barcodeVal, Substitute(Self.Value,Char(29)," "))
WarrenBelz
146,776
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,093
Most Valuable Professional