Home » Developer & Programmer » Forms » set_menu_item_property not supported in Forms 10g? and Disabling Menu item programmatically. (merged
set_menu_item_property not supported in Forms 10g? and Disabling Menu item programmatically. (merged [message #181519] Mon, 10 July 2006 06:52 Go to next message
nirmalnarayan
Messages: 261
Registered: April 2005
Location: India
Senior Member
Hi,

I am trying to disable certain menu items programmatically in some of the forms to which this menu is attached, using the following code.

set_menu_item_property('MENU1.FILE_MENU',ENABLED,PROPERTY_FALSE);


where MENU1 is the name of the menu module and FILE_MENU is the name of the menu item.

I have written the above code in PRE-FORM trigger.

But it is not at all disabling this menu item.


Any one can help me out in this?


Thanks n Regards,

Nirmal
Re: Disabling Menu item programmatically. [message #181534 is a reply to message #181519] Mon, 10 July 2006 07:41 Go to previous messageGo to next message
Rehan Mirza
Messages: 67
Registered: July 2004
Location: Pakistan
Member

Use When-New-Item-Instance instead of Pre-Form

take care
Re: Disabling Menu item programmatically. [message #181676 is a reply to message #181534] Tue, 11 July 2006 02:05 Go to previous messageGo to next message
nirmalnarayan
Messages: 261
Registered: April 2005
Location: India
Senior Member
I have tried with When-new-form-instance earlier, then also it was not working as desired.

Thanks and Regards,

Nirmal
Re: Disabling Menu item programmatically. [message #181765 is a reply to message #181676] Tue, 11 July 2006 08:09 Go to previous messageGo to next message
nirmalnarayan
Messages: 261
Registered: April 2005
Location: India
Senior Member
Hi,

I am using Oracle forms 10g , the above said problem still persists even writing this in When-new-item-instance trigger and when-window-activated trigger.

Thanks and Regards,

Nirmal Narayanan.
set_menu_item_property not supported in Forms 10g? [message #181786 is a reply to message #181519] Tue, 11 July 2006 08:49 Go to previous messageGo to next message
nirmalnarayan
Messages: 261
Registered: April 2005
Location: India
Senior Member
I am trying to disable some of the menu items, which is not requiered in some of the forms, i tried it writing in when-window-activated, when-new-item-instance, pre-form etc., but with no result.

So my doubt is set_menu_item_property is not at all supported in Forms 10g?

Is this true ?

Thanks and Regards,

Nirmal
set_menu_item_property not supported in Forms 10g? [message #181788 is a reply to message #181519] Tue, 11 July 2006 08:54 Go to previous messageGo to next message
nirmalnarayan
Messages: 261
Registered: April 2005
Location: India
Senior Member
I am trying to disable some of the menu items in some of the forms using set_menu_item_property.

I have tried this in when-new-item-instance, when-window-activated, when-new-form-instance and even in pre-form, but it does'nt seem to work.

My doubt is that the set_menu_item_property is not at all supported by Forms 10g ?

Thanks and Regards,

Nirmal
Re: set_menu_item_property not supported in Forms 10g? [message #181968 is a reply to message #181786] Wed, 12 July 2006 06:54 Go to previous messageGo to next message
RJ.Zijlstra
Messages: 104
Registered: December 2005
Location: Netherlands - IJmuiden
Senior Member
Please download document 'B15572-01' from oracle. (You can just put it in Google).
You'll find everything and more...

HTH,

Rob ZIjlstra
Re: set_menu_item_property not supported in Forms 10g? [message #182386 is a reply to message #181788] Fri, 14 July 2006 09:00 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please post the code that you feel is not working.

David
Previous Topic: problem in OLE2 and how can i add a line to a word file using OLE2 (merged)
Next Topic: STACK_OVERFLOW ERROR
Goto Forum:
  


Current Time: Fri Sep 20 11:40:18 CDT 2024