Hi ya ,
i'm back with another question for all you masters
I want to do an little App for my own pleasure (make the work lotta easier for me and my collegue)
scanning barcodes , send them to google sheets.
This works perfect for me.
Now : as we are 2 People , catching Barcodes , i want seperate Logins for both (so i can see what BS's i scanned and what BC's he scanned)
I'vwe been watching a nice Tutorial for a login , which already works.
Is it possible to get the unique UserID (e.g 0S01) and send it to Sheets with every scan ?
Sorry : There's no UserID created , only a login.
My thought was , to give the Logged In User and unique ID and save it as an variable........
To be honest , all the things i did so far , was created out of Tutorials , i understood , how the login works but not , how i can assign an UserID to the logged in User (a permanent , just for this user , when he logs in)
Once the login is successful, store the user ID (which you can just set as the username) as a variable. When you're sending the content to Google Sheets, append that variable (which is not carrying the user ID) to said content.
At app start, check tag LOGIN, to see if user has posted a name for his device.
If no LOGIN name found, request all the names that have appeared in the online sheet, in the LOGIN column.
When the list arrives, ask the user to enter his chosen name.
If the new user name is not in the list, save it in TinyDB under tag LOGIN and use that name for the life of the app on that device.
You will have to update your google form and add another entry/question for the UID, then generate the prefill form again in order to get the entry number and add this to your join block, with the UID.