Home » Developer & Programmer » Forms » disable the menu item.
disable the menu item. [message #85434] Fri, 25 June 2004 09:44 Go to next message
shahzad-ul-hasan
Messages: 615
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
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
Previous Topic: d2k forms
Next Topic: how to find out - time taken by a SQL query
Goto Forum:
  


Current Time: Wed May 15 20:14:39 CDT 2024