Hello everyone,
I am working with forms and menu item buttons and I have an issue with menu item buttons.
I want to ask is there a way to get form control if we only have form name and menu item name of that control?
I used this:
Form form = new Form('PurchTableListPage');
FormFunctionButtonControl formControl;
str txt;
;
formControl = form.design().control(menuitemDisplayStr('LedgerTransVoucher1'));
if (formControl)
{
txt = formControl.name();
info(Txt);
}
But i dont have the name so it isn't worked.
Any ideas?
Thank you.