I have a canvas app connected to dataverse tables.
In an editform screen I have a combo box displaying the values from a lookup column in a dataverse table. I want to use a barcode scanner button so that the user can scan a QR code and the output from the scan is used to filter the combo box.
Currently I have been able to filter the combo box with the following:
DefaultSelectedItems = Filter(Choices([@'Production Registers'].crf50_Item_id),PlainText(ThisRecord.'Item ID') = "ITEM-000054")
And when the form is submitted it then correctly submits ITEM-000054 as the 'Item ID' in the dataverse table.
However I need the value to come from the Barcode scanner.
I've unsuccessfully tried:
- DefaultSelectedItems = Filter(Choices([@'Production Registers'].crf50_Item_id),PlainText(ThisRecord.'Item ID') = BarcodeScanner1.Value)
- Adding in a text label (ScannedItemIDText) which contains the Barcode scanner output and then using it in the following: Filter(Choices([@'Production Registers'].crf50_Item_id),PlainText(ThisRecord.'Item ID') = ScannedItemIDText.text)