I’m building a “New Order” button in Glide, starting from a collection view of the Orders table (not a detail screen). When the button is tapped, I want to:
- Create a new order row in the Orders table
- Save the Order ID ( Row ID)
- Write that Order ID into a Last Created Order ID column (stored in either the User Profile)
- Use a relation from that ID to the Orders table
- Navigate to a detail screen built on top of that relation (which is where the full order interface lives)
Everything works except the “Show Detail Screen” step, which throws this error:
[Show detail screen] No row for screen
I believe this is because I’m triggering the action from a collection screen, which has no active row context.
My Question:
What’s the best way to trigger this flow (create a row → save ID → relate → navigate) from a collection view?
Is there a way to ensure Glide has the right row context to show the detail screen for the newly created row?
Any help or confirmation of best practices would be appreciated!
PS. I had this working before, then somehow broke it, and can’t figure out how to do it again!!!
In the video you’ll see I create a new order in a collection, and then I click on edit. I’m essentially trying to eliminate the click on edit step. When I create the new order, I want it to automatically navigate to the details page so I can enter the order.