Hi All,
i am new to PA and i want to make an app where i can check off a checklist using barcode scanner and qr codes. The background is that its a onboarding app, and when new people go to different stations within our company, they should be able to scan a barcode at every station, e.g. the HR department. So when they go there, they scan a qr code, and then the app checks this visit off of the list for onboarding tasks.
although i did a really basic online course, I have no idea where to start and how to go about it, can anyone help me get started with this?
Thank you very much for your effort. Meanwhile i managed to solve the problem.
Here is the code that worked for me:
OnScan:
Set(BarType;First(BarcodeReader1.Barcodes).Type);;
Set(BarValue;First(BarcodeReader1.Barcodes).Value);;
Set(BarUser;User().Email);;
Set(BarDate;Today());;
Patch(Tabelle1;Defaults(Tabelle1);{User:BarUser;Type:BarType;Value:BarValue;Datum:BarDate});;
Refresh(Tabelle1)
I think collections and excel just didnt work well, now i use global variables and a Sharepoint list, and it works like a charm 😉
Hello @Anonymous
What you can do is put your Patch function on either the OnScan or the OnChange property of the Barcode Reader control.
OnScan – Actions to perform when a barcode is successfully scanned.
OnChange - Actions to perform when a property on the barcode reader control is changed, including output properties.
Patch function is the function you use to update the record in a SharePoint list.
Basically the "cheking off" from a checklist is the problem, the scanning works fine!
Thanks for the advice. The problem is not to scan data and show it in a gallery or table. The problem is that the patch function doesnt seem to work somehow. I just cant look up the scanned value, for example "Station 1", and write "OK" in the next column.
Hello @Anonymous
Have you seen this video yet?
https://www.youtube.com/watch?v=lMqYjOpRbRg
Shane Young introduces all the potentials of barcode control here and he is using a very simple screen layout that you can follow.
WarrenBelz
223
Most Valuable Professional
MS.Ragavendar
110
Michael E. Gernaey
89
Super User 2025 Season 1