我是靠谱客的博主 诚心航空,最近开发中收集的这篇文章主要介绍EBS FORM 失效工具栏按钮,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述


代码如下,可写在 WHEN-NEW-FORM-INSTANCE里:

--这里会失效相应的触发器
set_menu_item_property('FILE.NEW', enabled, property_off);
set_menu_item_property('FILE.SAVE', enabled, property_off);
set_menu_item_property('Edit.Clear', enabled, property_off);
set_menu_item_property('Edit.delete', enabled, property_off);


--这里仅将按钮从工具栏移除,快捷键还是可以使用的
--VISIBLE亦可
set_menu_item_property('FILE.NEW', displayed , property_off);
set_menu_item_property('FILE.SAVE', displayed , property_off);
set_menu_item_property('Edit.Clear', displayed , property_off);
set_menu_item_property('Edit.delete', displayed , property_off);



SET_MENU_ITEM_PROPERTY built-in 

Description


Modifies the given properties of a menu item. 


Syntax


SET_MENU_ITEM_PROPERTY

  (menuitem_id  MenuItem, 

   property     NUMBER, 

   value        NUMBER);  

SET_MENU_ITEM_PROPERTY

  (menu_name.menuitem_name  VARCHAR2, 

   property                 NUMBER, 

   value                    NUMBER); 


Built-in Type  unrestricted procedure 

Enter Query Mode  yes 


Parameters


menuitem_id Specifies the unique ID Form Builder assigns when it creates the menu item.  Use the FIND_MENU_ITEM built-in to return the ID to an appropriately typed variable.  The data type of the ID is MenuItem. 

menu_name.menuitem_name Specifies the VARCHAR2 name you gave to the menu item when you defined it.  If you specify the menu item by name, include the qualifying menu name, as shown in the syntax. 

property Specify one of the following constants to set information about the menu item: 


CHECKED  Specifies the Checked property, which indicates if a check box menu item or a radio menu item is in the checked state or unchecked state. 

ENABLED  Specifies whether the menu item is enabled (thus active) or disabled (thus greyed out and unavailable to the operator).

ICON_NAME  Specifies the file name of the icon resource associated with a menu item having the Icon in Menu property set to TRUE. 

LABEL  Specifies the character string for the menu item label.


VISIBLE  Specifies whether the menu item is visibly displayed.


value Specify one of the following constants: 


PROPERTY_TRUE  Specifies that the property is to be set to the TRUE state. 

PROPERTY_FALSE  Specifies that the property is to be set to the FALSE state. 


Label   Specify the VARCHAR2 label name. 



转载于:https://blog.51cto.com/baser/1430741

最后

以上就是诚心航空为你收集整理的EBS FORM 失效工具栏按钮的全部内容,希望文章能够帮你解决EBS FORM 失效工具栏按钮所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(48)

评论列表共有 0 条评论

立即
投稿
返回
顶部