Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[135040.0.213301913]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    // pre-cond for Product_MP onOK
    product := guard( DataHolderDialogData.Data().WrappedInstance(), null(  Product_MP ) );
    
    sanitycheckfeedback := '';
    return Product_MP::ValidateInput( feedback,
                                      sanitycheckfeedback ,
                                      MacroPlan,
                                      EditFieldID.Text(),
                                      EditFieldName.Text(),
                                      DropDownListUOM.Data(),
                                      CheckBoxHasShelfLife.Checked(),
                                      ApplicationMacroPlanner.FormatStringToReal( EditFieldShelfLife.Text() ),
                                      CheckBoxHasMaturation.Checked(),
                                      ApplicationMacroPlanner.FormatStringToReal( EditFieldMaturation.Text() ),
                                      product,
                                      true,
                                      guard( DataHolderDialogDatas.Data(), null( Product_MPs)) );
  *]
  QuillAction
  {
    Body:
    [*
      Form.OnOK();
    *]
    GroupServerCalls: false
  }
}
