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