Chain of command on Form level are more flexible now in Dynamics 365

Hi All, Happy to share few more concepts of chain of Commands on form level in Dynamics 365 

Day by day the Microsoft is releasing Platform updates which opens up Flexibility for the developers to code easily. Below are the concepts are mingled with new and old concepts which were explained on form level. 

Now we can write down or create extension to the deep root level of datasource fieldsto controls of the forms Below are few points we can acheive in different way. 

 1. Extension Methods on the root of the form. 

 2. Extension Methods on controls. 

 3. Extension Methods on data sources. 

 4. Extension 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 FormControl, 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 links here: https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/extensibility/method-wrapping-coc 

No comments:

Post a Comment