My app can be used to do a transaction that is triggerred by an admin user from their own app. When the admin user triggers the transaction, they create an ‘pending transaction’ item in the pending transactions collection. When the user opens the app, I automatically check if there are any new pending transactions for that user, and if there are, then a list appears where the user has to select the pending transaction. However, since there can only be 1 pending transaction at a time,I want to automatically select the most recent pending transaction so the user can skip a page. How do I automatically select an item from a list, while I can still use that items data?
(I tried to change the setup by displaying the next page in a list, however since an item from the list is never explicitly selected and can get the data to save the finished transaction in my database)