最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

Dynamics 365财务和运营的窗体控件扩展验证事件 / Validate Event form control Extensions- Dynamics 365 for finance and Operations

网络文摘 alirazazaidi 249浏览 0评论
Very handy and quick tip. How to validate and cancel / failed validation logic in Dynamics 365 for finance and operations.. Here is FormControlCancelEventArgs is key to return false in the case of validation fail.Very similar logic works for form data source field validate events.
[FormControlEventHandler(formControlStr(BabayeeDaForm,  _BabayeDaTextBox), FormControlEventType::Validating)]
    public static void BabayeeDaForm_BabayeDaTextBox_OnValidating(FormControl sender, FormControlEventArgs e)
    {
var args = e as FormControlCancelEventArgs;
ret = checkFailed(' Main nahee mananah.');
            args.cancel(ret );
}
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址