XForms/Queue Management

Motivation
You want to manage a queue of items and be able to move items around the queue. Sample operations are move up, move down and move to top.

Screen Image
The up arrow will move the selected row up one item. The down arrow will move the selected item down one item. The triangle will move the selected item to the top of the queue.



Link to Working Example
Link to working example

Sample Code
Sample Model for Queue Manager:   

Discussion
The key to this example is to understand how the insert and delete operations are used with different attributes.

The trigger that moves an item up will need to store its current location in a temporary item.

Note that the current version applies to the highlighted row, not the row that you select the button on.

Credits
This example contributed by Ann Kelly.