Quintiq file version 2.0 
 | 
#parent: ButtonUpdateExpectedKPIs 
 | 
Response OnClick () id:Response_FormDashBoardInventoryOptimization_ButtonUpdateExpectedKPIs_OnClick 
 | 
{ 
 | 
  #keys: '[122872.2.204116118]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Open the run inventory optimization dialog 
 | 
    dlg := construct( DialogInventoryOptimization ); 
 | 
    dlg.RunInventoryEvalution( this, MacroPlan.DEPRECATED_InventoryOptimization() ); 
 | 
  *] 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick' 
 | 
  Precondition: 
 | 
  [* 
 | 
    /*return MacroPlan::HasMacroPlan( MacroPlan, feedback )  
 | 
           and Algorithm_MP::IsNotRunningInventoryOptimizationEvaluation( MacroPlan.Algorithm(), feedback ) 
 | 
           and Algorithm_MP::CanEvaluateInventoryOptimization( MacroPlan, feedback ); 
 | 
  *] 
 | 
} 
 |