Hello Everybody! In advance, sorry for my bad english !
I am experiencing difficulties updating a list in the app that receives data from Google Sheets. The issue I'm facing is that the list keeps printing itself repeatedly instead of updating. I am hopeful that someone can assist me.
I will share some images of my blocks with you!
When I tap on buttons (Flex QR or Use Picker) and perform the necessary actions, the list should be updated. However, my problem lies in the second photo.
My objective is to have a single list that automatically updates itself whenever I perform actions with the other buttons (Flex QR or Use Picker)
Here its my aia! Hope someone can find the error, i only want the list to update and no everytime I press the button the list prints itself again and again.
From a quick look, you appear to be create a "scan loop". With the button click you call a doScan, then in the afterScan event you call a doScan again. This will repeat over and over and over. Why ?
The loop is necessary because the scan checks if the number is already in the list. If the number is not in the list, the code will execute the procedure to save the information in the list. On the other hand, if the number is already in the list, it will notify that the QR code has already been picked and prompt to scan another QR code using the ScanCamera again.
If this is the name of the qrCode image then you can use that, otherwise you will need to include it in the free text in the qrCode, or use some other method