I am getting Incompatible types for comparison. These types can't be compared: Text, Table. Below is my formula which is in the OnScan property. What I am trying to achieve is if I scan an item and If the barcode of that item exists in the gallery it will open up the item. I want to get this fixed and see if it goes to the gallery item that has the same barcode. I have also changed
LookUp(
'Units assigned to Callsigns',
'Serial Number' = ScanBarcode.Barcodes
to
LookUp(
'Units assigned to Callsigns',
'Serial Number' = DataCardValue32.Text
Datacardvalue32 being the value of the scanned barcode but this will take me to the gallery but does not go to the item with the same barcode.
Help, please?
If(
!IsBlank(ScanBarcode.Barcodes),
Set(
SelectedItem,
LookUp(
'Units assigned to Callsigns',
'Serial Number' = ScanBarcode.Barcodes
)
);
If(
!IsBlank(SelectedItem),
Navigate(
Form2,
ScreenTransition.Cover,
{
SelectedItem: SelectedItem
}
),
Notify("Barcode not found in the gallery.", NotificationType.Error)
)
)