Chain of command now supports even more extension scenarios on forms. It is now possible to wrap:
- Methods on the root of the form.
- Methods on controls.
- Methods on data sources.
- 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