@aamruth Oh ok I thought your form on the right was on the same screen for mobile too.
No problem, maybe you can try something like this in your OnScan property:
Set(varUID,Blank());ClearCollect(barCodes,BarcodeReader1.Barcodes);Set(varUID,LookUp(Notstrategien,ColumnWithQRCodeValue exactin FirstN(barCodes,CountRows(barCodes)). Value).ColumnWithQRCodeValue);If(!IsBlank(varUID),Navigate(ScreenWithYourForm,ScreenTransition.Cover),Notify("No record found with this QR Code",NotificationType.Error))
1- Initialize Variable:
Set(varUID, Blank());: Initializes a variable named varUID with an empty value.
2-Scan Barcodes:
ClearCollect(barCodes, BarcodeReader1.Barcodes);: Collects scanned barcode values into a collection named barCodes.
3- Lookup Record:
Set(varUID, LookUp(Notstrategien, ColumnWithQRCodeValue exactin FirstN(barCodes, CountRows(barCodes)).Value).ColumnWithQRCodeValue);: Looks up a record in the Notstrategien data source based on scanned barcodes and sets varUID to the corresponding value in the ColumnWithQRCodeValue column.
4- Conditional Navigation:
If(!IsBlank(varUID), Navigate(ScreenWithYourForm, ScreenTransition.Cover), Notify("No record found with this QR Code", NotificationType.Error)): Navigates to a specific screen if varUID is not blank; otherwise, displays an error notification.
And in your form, go to its Item property and add :
LookUp(Notstrategien,ColumnWithQRCodeValue = varUID)
You may need to experiment to overcome some problems, but I hope this is a good starting point. 😉
Note : my formula works if you only scan ONE QR Code but I think this is what you were going to do.
_______
If this post helps, then please consider Accept it as the solution to help the other members find it. 😎
www.tutoverse.substack.com