I am trying to get the QR code to scan for those fills and automatically fill in the form. the ID, Date and time of the QR code was scanned. How do I achieve this?
I have changed my app and now i have empty text boxes to get the result in there instead, is there a way to get it automatically filled? i tried scanning the Qr code and couldnt get it to show
Hi @rytze ,
The date picker control can only select dates and cannot select times.
In addition , if you want to get hours and minutes , please try:
Set(Check_in_hour,Hour(DateTimeValue(Text(ParseJSON(Last(Self.Barcodes).Value).Check_in_datetime)))); Set(Check_in_Minute,Minute(DateTimeValue(Text(ParseJSON(Last(Self.Barcodes).Value).Check_in_datetime))));
Best Regards,
Bof
does the check_in_datetime separate? because i need them filled individually like check_in_date and check_in_time. and how do i get the result cause im not getting anything. i have added empty text boxes next to the fill where the result should be at.
Hi @rytze ,
For example, I assume there is a barcode:
{"Machine_ID":"12345","Check_in_datetime":"2024-01-01T09:08:00Z"}
The Formula should be:
Set(Machine_ID,Text(ParseJSON(Last(Self.Barcodes).Value).Machine_ID));
Set(Check_in_datetime,Text(ParseJSON(Last(Self.Barcodes).Value).Check_in_datetime));
Best Regards,
Bof
I meant the code for the onscan property to save the retrieved values into three variables respectively and to reset.
Hi @rytze ,
If you want to generate a QR code , please try :
https://www.qrcode-monkey.com/#text
If you want to generate QR code in canvas app, I think this link will help you a lot:
PowerApps: Generating and Printing QR Codes out of my PowerApp
Best Regards,
Bof
do u have a code for that? I'm not really sure how to make it work.
Hi @rytze ,
You could set the BarcodeReader's OnScan property to save the retrieved values into three variables respectively, then set these three variables as the default values for your controls, and finally reset these controls. This way, you can achieve automatic form filling after scanning a QR Code.
Best Regards,
Bof
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional