@Claromentis Claromentis
December 5, 2018
Why flat SharePoint Site Architecture makes total sense
December 5, 2018

Chain of command on forms

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.

News Reporter
News Reporter
Head of Operations (Banking), Director IT Governance, Teamlead Microsoft, Service Delivery Manager. Interested in Office 365, LAMP, IT Security and much more!