Drag and Drop
'Tips for developers working within the Sysgem Enterprise Manager (SEM) environment'.
Understanding the "Drag and Drop" definition page in the SEM Development Interface
Edit the 'Drag and Drop' Page
This section describes the purpose of the 'drag and Drop' page in a display contained in a SEM library.
The example above is taken from the SAcM Account Manager - SAcM Subscriber DB display.
It is possible to select one or more items from one SEM window and drag and drop them into another window. In the example chosen, an account in the Enterprise Accounts window can be selected and dropped into a Subscriber record on the SAcM Subscriber display window.
For this to happen, the "Drag and Drop" page of both windows needs to be used.
The Enterprise Accounts window is the "Source" window since it is providing the account pounter, and the SAcM Subscriber DB window is the "Target" since it is receiving the pointer.
So, the Enterprise Accounts Drag and Drop page simply needs to be set with the "Data Source" checkbox set. No other action is required for the Enterprise Accounts window.
The SAcM Subscriber DB window has the settings as shown above where the window is declared to be a "Drop Target" window and from which window the source will be derived (in this case the Enterprise Accounts window).
The "Drop Target" window also requires a menu option to be defined on the "Menu Page" and a reference to the menu entry referenced in the last field on this form. In this case the menu entry has been named: "Drop Target", and this menu option will be automatically invoked whenever a record is dragged and dropped from the Enterprise Accounts Window into the Subscriber Window.
Normally the menu option for a drag and drop action will be executed automatically, so it is a hidden option and it will start automatically without prompting, and on completion it will close automatically.
To make the menu option hidden, the "Enable" option on the menu page should be set to "Never - menu entry is hidden", as shown below.
To start the menu option automatically use the AUTO_APPLY command in the (M) Fields script.
To automatically close the menu window after the drag and drop action has completed, use the AUTO_CLOSE command in the (M) Agent or (M) Post-processing script.

