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();
}
}
Tags:
x++ code