Quintiq file version 2.0 
 | 
#parent: Toolbar/btnOk 
 | 
Response OnClick () id:Response_Toolbar_btnOk_OnClick 
 | 
{ 
 | 
  #keys: '[11660.1.183165125]' 
 | 
  Body: 
 | 
  [* 
 | 
    Dialog.SetAttributesBeforeOnApplyData(); 
 | 
    Dialog.ApplyChanges(); 
 | 
    Dialog.EndModal(1); 
 | 
  *] 
 | 
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick' 
 | 
  Precondition: 
 | 
  [* 
 | 
    sanitycheckfeedback := ''; 
 | 
    return SalesDemandBase::ValidateInput( feedback, 
 | 
                                       sanitycheckfeedback, 
 | 
                                       MacroPlan, 
 | 
                                       null( Forecast ), 
 | 
                                       SelectionSalesSegment.Data(), 
 | 
                                       SelectionStockingPoint.Data(), 
 | 
                                       SelectionProduct.Data(), 
 | 
                                       GUIDateTimeSelectorStart.DateTime().Date(), 
 | 
                                       GUIDateTimeSelectorEnd.DateTime().Date(), 
 | 
                                       SelectionCurrency.Data(), 
 | 
                                       SelectionUnitOfMeasure.Data(), 
 | 
                                       ApplicationLibMacroPlanner.FormatStringToReal( EditorQuantity.Text() ), 
 | 
                                       ApplicationLibMacroPlanner.FormatStringToReal( EditorPrice.Text() ), 
 | 
                                       SelectionPriority.Data(), 
 | 
                                       Dialog.Data().DemandUncertaintyPercentage(), 
 | 
                                       Dialog.CheckBoxIsExcludedFromFulfillmentKPI().Checked(), 
 | 
                                       true); 
 | 
  *] 
 | 
} 
 |