Hi,
I am trying to develop an order fulfillment application and require guidance on managing order data dynamically. My data is stored in Airtable, where each order includes multiple associated order lines. Each line captures specific details such as the SKU and quantity of ordered items.
I can call any Order and display the associated lines without any issue.
My challenge lies in dynamically creating variables for each order line in weweb, as the number of order lines can vary. For instance, an order might have three lines (3 ordered items), necessitating the following variables:
Line1_sku = “example_sku_1”
Line1_qty = 10
Line2_sku = “example_sku_2”
Line2_qty = 5
Line3_sku = “example_sku_3”
Line3_qty = 20
The operator will then need to scan X times (X being the qty of each ordered item) each items in order to complete the order.
However, I currently lack a method to create and manage these variables based on the varying number of lines per order.
Could you please provide guidance or examples on how to achieve this functionality in a scalable and efficient manner?
Thank you for your support.