Hi all, I've got a bit of a puzzle for you so I will explain the best I can below:
So, I am currently building an app that is supposed to manage assets. A user should be able to scan an assets tag (barcode or NFC) and then they will be taken to the form either, A - Showing them the asset that relates in the pre-populated form view to that tag if the asset is found, or B - If the Asset is not found, navigate to the form view with the NFC/Barcode fields pre-populated with the record that has just been scanned, but everything else empty as the record does not exist.
I managed to achieve this result using the with the Barcode Scanner using this code:
Set(
//varSelected is the variable that is the 'item' property of the form.
varSelected,
LookUp(
Assets,
//'Bar Code' is the column name in the data source.
'Bar Code' = First(Self.Barcodes).Value
)
);
If(
!IsBlank(varSelected),
Set(
varFormMode,
FormMode.View
),
Set(
varFormMode,
FormMode.Edit
);
Set(
varBarcode,
First(Self.Barcodes).Value
)
);
Navigate(ViewAsset_Screen);
Now I need to apply this to the NFC Scanner in a similar fashion, any help would be greatly appreciated 🙂