• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1714
  • Last Modified:

Oracle Forms 6i - diable bottons on the Smartbar

How can I disable buttons on the smartbar?  For example, I do not want the insert record icon to be active.
0
DCCoolBreeze
Asked:
DCCoolBreeze
  • 4
  • 2
1 Solution
 
andrewstCommented:
You must disable the associated menu item, e.g.

SET_MENU_ITEM_PROPERTY( 'MENU.ITEM', ENABLED, PROPERTY_FALSE );
0
 
DCCoolBreezeAuthor Commented:
OK.  Where can I find a list of MENU Items?  In other words, how do I reference say RECORD INSERTs
0
 
DCCoolBreezeAuthor Commented:
I added this code to WHEN-NEW-FORM-INSTANCE and it could not locate the menu item

     menu_item_id := find_menu_item('DATA.INSERT');
     if id_null(menu_item_id) then
          message('Unable to locate DATA.INSERT');
     end if;
I also tried

     menu_item_id := find_menu_item('RECORD.INSERT');
     if id_null(menu_item_id) then
          message('Unable to locate RECORD.INSERT');
     end if;

no luck
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
DCCoolBreezeAuthor Commented:
I also tried the code in WHEN_WINDOW_ACTIVATED
0
 
andrewstCommented:
If you find the Oracle-supplied menu source file called MENUDEF.MMB, that has a menu exactly like the default menu.  Open that in Forms Builder to see the menu names and item names.

You can also copy MENUDEF.MMB to a new name and attach that instead, so that you can customise the menu.
0
 
retronautCommented:
why not just disable insert on the block in question?
ALT+insert is still active.
0
 
DCCoolBreezeAuthor Commented:
could not locate menudef.mmb.  Yes, I had disabled insert on the block but then the menu becomes misleading by giving the option.  I currently have attached informational messages to the buttons but it would be better if I could just disable them
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now