Hello,
I have an asset app that allows me to scan a barcode, return the item scanned and then edit the details.
When I scan either an Asset ID or Serial Number, the item returns correctly. However, when I try edit the item, it only works if an Asset ID has been scanned and not the Serial Number.
I was wondering if anyone could spot what is causing the issue? I have added a text label to display my scanned value which does return correctly but when editing after scanning the serial number, the screen just gets stuck on 'getting data'.
This is the code I'm using, if anyone can advice what I may have done wrong or knows a solution to fix it would be massively appreciated! :)
OnScan
Set(varScannedValue, First(Self.Barcodes).Value);
Navigate(DetailScannedWindowDevice, ScreenTransition.Fade)
Item
First(
Filter(
[@'Asset Reg - Windows Devices'],
'Serial No.' = varScannedValue Or 'Asset ID' = varScannedValue
)
)
EditButton
EditForm(EditForm1_2);
Navigate(EditScannedWindowDevice, ScreenTransition.None, {varEditScannedValue: varScannedValue})