| Quintiq file version 2.0 | 
| #parent: pnlActions/btnOk | 
| Response OnClick () id:Response_pnlActions_btnOk_OnClick | 
| { | 
|   #keys: '[139394.0.1859138728]' | 
|   DefinitionID: 'Responsedef_WebButton_OnClick' | 
|   Precondition: | 
|   [* | 
|     sanitycheckcategory := ''; | 
|     return FulfillmentTarget::ValidateInput( feedback, | 
|                                              sanitycheckcategory, | 
|                                              MacroPlan, | 
|                                              guard( DataHolderDialogData.Data().WrappedInstance(), null( FulfillmentTarget ) ), | 
|                                              EditFieldName.Text(), | 
|                                              guard( DropDownListProduct.Data(), null( Product_MP ) ), | 
|                                              guard( DropDownListStockingPoint.Data(), null( StockingPoint_MP ) ), | 
|                                              guard( DropDownListSalesSegment.Data(), null( SalesSegment_MP ) ), | 
|                                              ApplicationMacroPlanner.FormatStringToReal( EditFieldTargetPercentage.Text() ), | 
|                                              DateSelectorStart.Date(), | 
|                                              DateSelectorEnd.Date(), | 
|                                              false, /*isforsafetystock*/ | 
|                                              Translations::MP_GlobalParameters_KPIFulfillmentTargetName() | 
|                                             ); // the selection will be disabled when is for safety stock is true | 
|   *] | 
|   QuillAction | 
|   { | 
|     Body: | 
|     [* | 
|       // On ok | 
|       Form.OnOK(); | 
|     *] | 
|     GroupServerCalls: false | 
|   } | 
| } |