disable the menu item. [message #85434] |
Fri, 25 June 2004 09:44 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
shahzad-ul-hasan
Messages: 625 Registered: August 2002
|
Senior Member |
|
|
Respected sir,
i have build a new menu with the following command on a run time form.
Actions Edit Query Help
1. Save Cut First Show Error
2. Print Copy Next About
i want to disable a save menu when a new form run.when a new form run in query mode, the save command is disable. when i move record, are insert it is enabled......
thx for help me....
|
|
|
Re: disable the menu item. [message #85491 is a reply to message #85434] |
Fri, 02 July 2004 02:52 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](http://www.orafaq.com/forum/images/custom_avatars/45399.jpg) |
vamsi kasina
Messages: 2112 Registered: October 2003 Location: Cincinnati, OH
|
Senior Member |
|
|
Hi shahzad,
you can use SET_MENU_ITEM_PROPERTY to disable the menu item in WHEN-NEW-FORM-INSTANCE trigger.
you have to enable it by using SET_MENU_ITEM_PROPERTY in WHEN-VALIDATE-ITEM (form level) when :SYSTEM.FORM_STATUS is NEW or CHANGED and disable when :SYSTEM.FORM_STATUS is QUERY.
i think validation unit should be item level.
needs experts comments
by
vamsi
|
|
|