Tuesday, 26 November 2019

COC FORM BUTTON IN D365 CHAIN OF COMMAND

CHAIN OF COMMAND ON A FORM BUTTON
Yes with the new version it is possible to have a COC on a form BUTTON IN D365 .
It has the similar syntax as we use to follow as shown below.

[ExtensionOf(formControlStr(FormToExtend, Button1))]
final class FormButton1_Extension
{
    public void clicked()
    {
        next clicked();
        //...write your code here if you want to execute your logic after the std clicked event or else write .//it before the next clicked() line.
    }
}

DataSource1 - > is the datasource which needs to be customized .
Below line of code is very important
[ExtensionOf(formControlStr(FormToExtend, Button1))]


No comments:

Post a Comment

UX & Personalization: Next-Generation Workspace Experience

  UX & Personalization: Next-Generation Workspace Experience Section Content Title Build Your Dream Workspace: Advanced Personalization ...