I’m creating an app for a regional retailer to keep track of the inventory. I have 3 collections: stores, products, and inventory, which has relationships to both stores and products (AKA SKUs). I added a QR code scanner so that the store employee can scan the barcode of a product, and it will create a record in inventory that links that record to the SKU with the matching UPC code to that scan. Currently. I have the “Name” field being created with the scan data (because that’s the only field that it was allowing me to put this). I want to have some sort of operation that uses the Name to lookup in the SKU collection to determine which SKU to connect to this inventory record. Anyone know how I can do that?
The user scanning the item should be on a screen than has ‘Current store’ as Available data. Or if the user can only work at one store, then have a relationship in the user Assigned_Store.
Current store will only be available if it comes from a list on the previous screen.
Assigned Store will be available on all screens because it comes from Logged In User.
Once you have either of these in place you will be able to add that product then update via separate action to be part of the current inventory.
Thank you for your response; I’m still kind of confused. I’m fine with assigning the correct store to the record, that all seems to be working. What isn’t working is using the scanned UPC code from the barcode scanner to create a link to the corresponding record in the Products database. Can you help me out with that?
After the scan it could update a text input Input UPC
This then filters a list of products based on the UPC (QR Data).
From that list you then add it to the inventory.
This makes a lot of sense, thank you. The one thing I can’t figure out is how to reference the input value when filtering the list? I’m not seeing any option come up that allows me to reference the input value
Perfect thank you so much! You’re so helpful. Final question: what button action would I put to add entries from the list as records in the inventory collection?