Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[139394.0.1381136773]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return not isnull( DataHolderDialogData.Data() )  //the only time Dialog.Data null check is required is when this dlg is opened for view initialization. 
           and Operation::ValidateInput( feedback,
                                         sanitycheckfeedback,
                                         MacroPlan,
                                         DropDownListUnit.Data(),
                                         EditFieldID.Text(),
                                         EditFieldID.Text(),
                                         ApplicationMacroPlanner.FormatStringToReal( EditFieldThroughput.Text() ),
                                         CheckboxHasUserLotSize.Checked(),
                                         ApplicationMacroPlanner.FormatStringToReal( EditFieldUserMinimumQuantity.Text() ),
                                         CheckboxHasUserMaximumQuantity.Checked(),
                                         ApplicationMacroPlanner.FormatStringToReal( EditFieldUserMaximumQuantity.Text() ),
                                         ApplicationMacroPlanner.FormatStringToReal( EditFieldUserLotSize.Text() ),
                                         ApplicationMacroPlanner.FormatStringToReal( EditFieldCO2Emission.Text() ),
                                         guard( DataHolderDialogData.Data().WrappedInstance(), null( Operation ) ),
                                         true /*checkunique*/ );
  *]
  QuillAction
  {
    Body:
    [*
      // On ok
      Form.OnOK();
    *]
    GroupServerCalls: false
  }
}
