Tuesday, 26 November 2019

COC on a FORM DATASOURCE D365 CHAIN OF COMMANDS FORMDATASOURCE

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

[ExtensionOf(formdatasourcestr(FormToExtend, DataSource1))]
final class FormDataSource1_Extension
{
    public void init()
    {
        next init();
        //...
        //use element.FormToExtendVariable to access form's variables and datasources
        //element.FormToExtendMethod() to call form methods
    }

    public boolean validateWrite()
    {
        boolean ret;
        //...
        ret = next validateWrite();
        //...
        return ret;
    }
}

DataSource1 - > is the datasource which needs to be customized .

No comments:

Post a Comment

AZURE INTERVIEW QUESTIONS AND ANSWERS

AZURE INTERVIEW QUESTIONS AND ANSWERES 2021 2. What is cloud computing? Explanation:  It is the use of servers on the internet to “store...