0

If function connected to two choice menus

I have two choice lists, one is the status of order for single item and the second is status of the whole order list. Is IT posible to make that when status of all single items Are Market as “delivered”, status of whole order changes to “delivered”?

1 reply

null
    • Support
    • 6 yrs ago
    • Reported - view

    Put a formula in the onChange event of the sigle item Choice field like this:

    –––
    let myOrderItemStatus := (Oder.item order by status).status;
    if text(first(myOrderItemStatus)) = "delievered" and  text(last(myOrderItemStatus)) = "delievered" then Order.Status := "delievered" end
    –––

    Birger

Content aside

  • 6 yrs agoLast active
  • 1Replies
  • 1622Views