Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[139394.0.442640736]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    data := DataHolderDialogData.Data();
    return not isnull( data ) 
       and Strategy::ValidateInput( feedback,
                                    EditFieldName.Text(),
                                    ScenarioManager,
                                    data.WrappedInstance(),
                                    data.MassScalingFactor(),
                                    data.MonetaryScalingFactor(),
                                    data.TimeScalingFactor(),
                                    data.TimeAccountScalingFactor(),
                                    data.InventoryHoldingScalingFactor(),
                                    ApplicationMacroPlanner.FormatStringToNumber( EditFieldAvgDemand.Text(),0 ),
                                    ApplicationMacroPlanner.FormatStringToNumber( EditFieldNrOfPeriodsSmartPlan.Text(), 0 ),
                                    CheckboxUseSlidingWindowsApproach.Checked(),
                                    ApplicationMacroPlanner.FormatStringToNumber( EditFieldNrOfPeriodsInWindow.Text(), 0 ),
                                    ApplicationMacroPlanner.FormatStringToNumber( EditFieldNrOfPeriodsPerSlide.Text(), 0 ),
                                    CheckboxUseMetaOptimizer.Checked(),
                                    CheckboxOverrideFirstFocusLevel.Checked(),
                                    CheckboxOverrideLastFocusLevel.Checked(),
                                    ApplicationMacroPlanner.FormatStringToNumber( EditFieldMetaFirstFocusLevel.Text() ),
                                    ApplicationMacroPlanner.FormatStringToNumber( EditFieldMetaLastFocusLevel.Text() ),
                                    ApplicationMacroPlanner.FormatStringToNumber( EditFieldMaxiTimeForAllIteration.Text() ),
                                    ApplicationMacroPlanner.FormatStringToNumber( EditFieldMaxNrOfElementsInCampaignCombi.Text(), 0 ), 
                                    CheckboxMetaCollapseLevel.Checked(), 
                                    ApplicationMacroPlanner.FormatStringToReal( EditFieldMetaCollapseLevel.Text() ) )
      and Form.ValidateLevels( feedback, DataHolderKPIs.Data() );
  *]
  QuillAction
  {
    Body:
    [*
      Form.OnOK();
    *]
    GroupServerCalls: false
  }
}
