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

窗体上的命令链条 / Chain of command on forms

网络文摘 William 1577浏览 0评论

Chain of command now supports even more extension scenarios on forms. It is now possible to wrap:

  1. Methods on the root of the form.
  2. Methods on controls.
  3. Methods on data sources.
  4. Methods on fields on data sources.

So far you can only wrap system methods on the latter 3, i.e. methods that are defined on the Form<Type>Control, FormDataSourceObject and FormDataSet classes, respectively. You can wrap any method defined in the root of the form. Also, there is no support for extending multiple forms, controls, data sources or fields within the same extension-of class.

Examples:

[ExtensionOf(formStr(SomeForm))]
[ExtensionOf(formControlStr(SomeForm, SomeControl))]
[ExtensionOf(formDataSourceStr(SomeForm, SomeDataSource))]
[ExtensionOf(formDataFieldStr(SomeForm, SomeDataSource, SomeField))]

See more here: https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/extensibility/method-wrapping-coc

THIS POST IS PROVIDED AS-IS AND CONFERS NO RIGHTS.

转载请注明:ww12345678 的部落格 | AX Helper » 窗体上的命令链条 / Chain of command on forms

发表我的评论
取消评论

表情

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

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