Quintiq file version 2.0 
 | 
#parent: GanttChartDemandSupplyGroup 
 | 
Response OnClick ( 
 | 
  structured[StockingPointInPeriod] selection 
 | 
) id:Response_GanttChartDemandSupplyGroup_MenuSmartPlanRows_OnClick_228 
 | 
{ 
 | 
  #keys: '[124808.2.525198510]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Smart plan rows for SPs from SPIPs node 
 | 
    dlg := construct( DialogSmartPlan ); 
 | 
     
 | 
    sps := selectset( selection, Elements.StockingPoint_MP, sp, true );   
 | 
    isviableonestepupstream := false;                     
 | 
    dlg.SmartPlan( sps, this, isviableonestepupstream ); 
 | 
  *] 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID => /GanttChartDemandSupplyGroup/Responsedef_GanttChartDemandSupplyGroup_Menu_OnClick 
 | 
  Initiator: 'MenuSmartPlanRows' 
 | 
  Precondition: 
 | 
  [* 
 | 
    return MacroPlan.CanPlan( feedback ) 
 | 
           and ScenarioManager::CanStartSmartPlan( ScenarioManager, SelectionScenario.Data(), true, feedback ); 
 | 
  *] 
 | 
} 
 |