Quintiq file version 2.0
#parent: GanttChartDemandSupplyGroup
Response OnClick (
  structured[ProductInStockingPointInPeriod] selection
) id:Response_GanttChartDemandSupplyGroup_MenuSmartPlanRows_OnClick
{
  #keys: '[124808.2.525195715]'
  Body:
  [*
    // Smart plan rows for PISPs from PISPIP node
    dlg := construct( DialogSmartPlan );
    
    pisps := selectset( selection,
                        Elements.ProductInStockingPoint_MP,
                        pisp,
                        true );  
    isviableonestepupstream := true;                    
    dlg.SmartPlan( pisps, 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 );
  *]
}
