Learn How to Access Controls, Forms, Datasources with X++ Code in Extensions


Accessing  form control in Extension with element as form run with x++ code

[ExtensionOf(formControlStr(ProjInvoiceJournal, ProjInvoiceReport))]

final class ProjInvoiceReport_FC_Extension

{

    void clicked()

    {

        FormRun formRun = element as FormRun;

        FormFunctionButtonControl control = formRun.design().controlName(formControlStr(ProjInvoiceJournal, PrintProjInvoiceButton));

         Info(control.menuitemname());.

         next clicked(); 

    }

}


Post a Comment

Previous Post Next Post