I’m using the QR code scanner to scan a code on a product, compare the scanned code to an existing database and display the product name in a list, if the scanned code matches to any barcode in the db.
The list that I created is able to populate the scanned code, but the comparison of the scanned code with the code in the db isn’t happening.
You’re not providing enough info here to answer your question.
These fields that you are populating are just display information there is no comparing happening. You are just setting what you want the title and subtitle of the lists to be.
Then have it link to where you want your list to be:
For the list. You will have it be a list of your products > All Products> Where the barcode field (in that product collection) is equal to the Current QR Code Scan > QR Code.
From here you can create another action to link to a product page for that product, or a back button. Whatever you do at this point though you will want to make that action also delete the current QR Code Scan so that you do just fill that database up with scans. This will keep that database to the one scan.