Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[139394.0.1555045780]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return CampaignType_MP::ValidateInput( feedback,
                                           sanitycheckfeedback,
                                           DropDownListUnit.Data(),
                                           EditFieldName.Text(),
                                           ApplicationMacroPlanner.FormatStringToReal( EditFieldDefaultMinQty.Text() ),
                                           ApplicationMacroPlanner.FormatStringToReal( EditFieldDefaultMaxQty.Text() ),
                                           DurationSelectorMinDuration.Duration(),
                                           DurationSelectorMaxDuration.Duration(),
                                           guard( DataHolderDialogData.Data().WrappedInstance(), null( CampaignType_MP ) ),
                                           true,
                                           RadioButtonGroupQuantityDuration.BoundValue(),
                                           EditFieldDefaultMaxQty.ActionLinkText() = Translations::MP_WebDesigner_Disable() and RadioButtonGroupQuantityDuration.BoundValue() = GlobalParameters_MP::GetCampaignTransitionsTypeQuantity(),
                                           DurationSelectorMaxDuration.ActionLinkText() = Translations::MP_WebDesigner_Disable() and RadioButtonGroupQuantityDuration.BoundValue() = GlobalParameters_MP::GetCampaignTransitionsTypeDuration()
                                         );
  *]
  QuillAction
  {
    Body:
    [*
      // On ok
      Form.OnOk();
    *]
    GroupServerCalls: false
  }
}
