Quintiq file version 2.0
#parent: #root
Response OnCreated () id:Response_DialogSelectUnitsForSmartPlan_OnCreated
{
  #keys: '[136682.0.1870161737]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnCreated'
  GroupServerCalls: true
  QuillAction
  {
    Body:
    [*
      //Get the unselected units 
      units := selectset( MacroPlan, Unit, u, true );
      
      unselectedUnits := units.Difference( ApplicationMacroPlanner.DataHolderSelectedUnitsForSmartPlan().Data() );
      
      DataHolderUnselectedUnitsSPD.Data( &unselectedUnits );
      
      selected := ApplicationMacroPlanner.DataHolderSelectedUnitsForSmartPlan().Data().Copy() ; 
      //Set the selectedUnits
      DataHolderSelectedUnitsSPD.Data( &selected );
    *]
  }
}
