***************
Declare
mid MenuItem;
Begin
if :system.event_window='W_BUYER'
then
mid := Find_Menu_Item('TNAMENU.VENDOR');
set_menu_item_property(mid,ENABLED,PROPERTY_FALSE);
end if;
end;
****************
(I'v created a menu named TNAMENU in its mainmenu is the menu FORM then NEW & in that is menu item VENDOR )
but it's not working. is it the problem of MenuItem name.
plz help.
it's not working" means about nothing. In most cases you have thousands of wrong ways and only single correct one.
Do you get an error? Are you sure your code is executed (I mean do you pass if :system.event_window='W_BUYER' condition)?
It's also a good idea to check mid by ID_NULL before using it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.