I have several orders that are being updated in an internal data entry
app. I start by going from an order to pop-up form that allows a user
to select items to add to a field in the order. The pop-up form
contains 2 partials for drag and drop functionality from AWD. The user
starts by selecting a category in a drop down list. Then on select, the
first partial is filled with the list of options. The user can then
drag and drop from the first partial to the second.
Now, my question is how to keep the original order id available to the
partials at all times.
Right now I have a global variable set in the action when the page
loads, but I’m guessing that this might not be the best way to do this.
The first partial needs the order id so that it can look up which items
have already been selected so it doesn’t include those in the option to
select. The second partial displays all of the items that have been
Hope this makes sense.