| Quintiq file version 2.0 | 
| #parent: pnlActions/btnOk | 
| Response OnClick () id:Response_pnlActions_btnOk_OnClick | 
| { | 
|   #keys: '[139394.1.918350030]' | 
|   DefinitionID: 'Responsedef_WebButton_OnClick' | 
|   Precondition: | 
|   [* | 
|     sanitycheckfeedback := ''; | 
|     return InventorySpecification::ValidateInput( feedback, | 
|                                                   sanitycheckfeedback, | 
|                                                   guard( ddlProduct.Data(), null( Product_MP ) ), | 
|                                                   guard( ddlStockingPoint.Data(), null( StockingPoint_MP ) ), | 
|                                                   dsStart.Date(), | 
|                                                   [Boolean] rbgMinLevel.BoundValue(), | 
|                                                   ApplicationMacroPlanner.FormatStringToReal( efMinInventoryLevel.Text() ), // Let default be NaN & format right feedback to indicate the field is empty | 
|                                                   ApplicationMacroPlanner.FormatStringToReal( efMinInventoryLevel.Text() ), | 
|                                                   cbHasMaxInventory.Checked(), | 
|                                                   [Boolean] rbgMaxLevel.BoundValue(), | 
|                                                   ApplicationMacroPlanner.FormatStringToReal( efMaxInventoryLevel.Text() ), | 
|                                                   ApplicationMacroPlanner.FormatStringToReal( efMaxInventoryLevel.Text() ), | 
|                                                   guard( DataHolderDialogData.Data().WrappedInstance(), null( InventorySpecification ) ), | 
|                                                   true /*checkunique*/ ); | 
|   *] | 
|   QuillAction | 
|   { | 
|     Body: | 
|     [* | 
|       // On ok | 
|       Form.OnOK(); | 
|     *] | 
|     GroupServerCalls: false | 
|   } | 
| } |