I have 2 tables - orders and shipments which are joined by order_id. I have a page which shows the orders and I have created an onclick action that sets a variable to the orderid once the order number has been clicked. The action then navigates to the shipments page which is supposed to list all shipments associated with this order.
I have a collection which pulls the data from the shipments table filtered on the orderid.
Option 1: Store the order information associated with the clicked order ID in a variable. This is straightforward to implement, but the downside is that the data is stored on the frontend, making it less secure.
Option 2: Set up an API call from Xano to retrieve the order details dynamically. This approach is more secure and scalable.
To help with setting up dynamic collection pages for displaying order information on a new page, check out this video from the WeWeb Academy.