Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Menu Response accordingly

Status
Not open for further replies.

tyb

Technical User
Feb 10, 2004
137
IR

Dear Frends plz help me

i'v multiple windows in my form and i want the menu item to respond accordingly. ie i want the lov to be shown if that specific window is on display.
 
Yes Dear
i want some buttons to be disabled depending upon the active window from among the form windows.
 
can u plz tell me how to chek which window is active of those contained in the form.

let say i want to perform some task when the window "W1" is on front.

thanx
 
Dear sem
i'v written this code in WWA trigger

***************
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.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top