Quantcast
Viewing all articles
Browse latest Browse all 72043

Get form menu item control when have form name, menu item type and menu item name using X++

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.


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>