Quintiq file version 2.0
#parent: ListScenario
Response OnDrop (
  structured[ScenarioNode] information,
  ScenarioNode target
) id:Response_ListScenario_OnDrop_2
{
  #keys: '[11766.1.296640278]'
  Body:
  [*
    // Move selected scenario nodes to a target node
    isdeleted := false;
    
    this.SelectByKey( target.Key() );
    this.ExpandSelection();
    
    target.Move( information, isdeleted);
    
    if( isdeleted ) // ScenarioNode.Move will retrn true if any datasets have been deleted.
    {
      Form.DeselectScenario(); // Deselect scenarios if any of the dataset have been deleted.
    }
  *]
  DefinitionID: 'Responsedef_GUIComponent_OnDrop'
  Precondition:
  [*
    username := ApplicationLibMacroPlanner.GetUserName();
    return ScenarioNode::CanMove( target, information, username, feedback );
  *]
  UserRequiresReadWrite: true
}
