Description                                                                    
Returns a BOOLEAN value that indicates whether the object ID is available.
Syntax                                                                        
FUNCTION ID_NULL(Alert ALERT);
FUNCTION ID_NULL(Block BLOCK);
FUNCTION ID_NULL(Canvas CANVAS);
FUNCTION ID_NULL(Editor EDITOR);
FUNCTION ID_NULL(FormModule FORMMODULE);
FUNCTION ID_NULL(GroupColumn GROUPCOLUMN);
FUNCTION ID_NULL(Item ITEM);
FUNCTION ID_NULL(LOV LOV);
FUNCTION ID_NULL(MenuItem MENUITEM);
FUNCTION ID_NULL(ParamList PARAMLIST);
FUNCTION ID_NULL(RecordGroup RECORDGROUP);
FUNCTION ID_NULL(Relation RELATION);
FUNCTION ID_NULL(Report_Object REPORT_OBJECT);
FUNCTION ID_NULL(TabPage TABPAGE);
FUNCTION ID_NULL(Timer TIMER);
FUNCTION ID_NULL(Viewport VIEWPORT);
FUNCTION ID_NULL(VisualAttribute VISUALATTRIBUTE);
FUNCTION ID_NULL(Window WINDOW);
Built-in Type unrestricted function
Returns BOOLEAN
Enter Query Mode yes

Parameters                                                         
object_id You can call this function to test results of the following object ID types:

  • Alert
  • Block
  • Canvas
  • Editor
  • FormModule
  • GroupColumn
  • Item
  • LOV
  • MenuItem
  • ParamList
  • RecordGroup
  • Relation
  • REPORT_OBJECT
  • TabPage
  • Timer
  • Viewport
  • VisualAttribute
  • Window

Usage Notes                                                  
Use ID_NULL when you want to check for the existence of an object created dynamically at runtime. For example, if a specific record group already exists, you will receive an error message if you try to create that record group. To perform this check, follow this general process:

  •   Use the appropriate FIND_ built-in to obtain the object ID.
  •   Use ID_NULL to check whether an object with that ID already exists.
  •   If the object does not exist, proceed to create it.

If you are going to test for an object’s existence at various times (that is, more than once during a run), then you need to reissue the appropriate FIND_ every time -- once preceding each use of ID_NULL.

ID_NULL Examples

/*** Built-in: CREATE_GROUP ** Example: Creates a record group and populates its values ** from a query. */
DECLARE
  rg_name VARCHAR2(40) := 'Salary_Range';
  rg_id   RecordGroup;
  gc_id   GroupColumn;
  errcode NUMBER;
BEGIN
  /* ** Make sure the record group does not already exist.*/
  rg_id := Find_Group(rg_name); /* ** If it does not exist, create it and add the two ** necessary columns to it. */
  IF Id_Null(rg_id) THEN
    rg_id := Create_Group(rg_name); /* Add two number columns to the record group */
    gc_id := Add_Group_Column(rg_id, 'Base_Sal_Range', NUMBER_COLUMN);
    gc_id := Add_Group_Column(rg_id, 'Emps_In_Range', NUMBER_COLUMN);
  END IF; /* ** Populate group with a query */
  errcode := Populate_Group_With_Query(rg_id,
                                       'SELECT SAL-MOD(SAL,1000),COUNT(EMPNO) ' ||
                                       'FROM EMP ' ||
                                       'GROUP BY SAL-MOD(SAL,1000) ' ||
                                       'ORDER BY 1');
END;

oracle Form Builer:ID_NULL Built-in的更多相关文章

  1. oracle Form Builer:FIND_FORM Built-in

    Description Searches the list of forms and returns a form module ID when it finds a valid form with ...

  2. [转]Oracle Form 触发器执行顺序

    Trigger 不是数据库中的触发器,不过功能类似,都是当某个事件发生的时候会触发. Trigger中可以编写代码,当对应事件发生的时候就会执行该Trigger中的代码. Oracle Form中的T ...

  3. Standard Attachments in Oracle Form 标准附件

    Standard Attachments in Oracle Form 默认情况下"附件"按钮是灰色的,本文将展示如何让某个Form的附件按钮变亮,并能上传附件. 以用户Form为 ...

  4. [Form Builder]Oracle Form系统变量中文版总结大全

    转:http://yedward.net/?id=57 Form中的系统变量,它存在于一个Form的整个运行时期的会话之中,变量包含了有关Form相关属性的字节信息.有些变量标明了当前状态,还有些变量 ...

  5. oracle form 触发器执行顺序及键定义[Z]

    1当打开FORM时: (1)PRE-FORM (2)PRE-BLOCK(BLOCK级) (3)WHEN-NEW-FORM-INSTANCE (4)WHEN-NEW-BLOCK-INSTANCE (5) ...

  6. Oracle Form Builder

    Oracle Form Builder 是Oracle的一个开发工具,可以针对Oracle公司的E-Business Suit的ERP系统开发的.对应的还有reports builder. Oracl ...

  7. Oracle Form's Trigger Tutorial With Sample FMB

    Created an Oracle Form to handle specific events / triggers like When-New-Form-Instance, Pre-Insert, ...

  8. Oracle Form Data Entry Sample

    I shared a data entry example form here in this post for Oracle Forms beginner developers, so that t ...

  9. FRM-10001, FRM-10002, FRM-10003 Oracle Form Builder Error Solution

    These errors occurred usually due to forms connection problem or some internal problem, the solution ...

随机推荐

  1. win2003+IIS6+PHP5.3.8+MSSQL2008的安装配置

  2. android & Linux uevent机制

    Linux uevent机制 Uevent是内核通知android有状态变化的一种方法,比如USB线插入.拔出,电池电量变化等等.其本质是内核发送(可以通过socket)一个字符串,应用层(andro ...

  3. hdu4714Tree2cycle

    链接 树上的一些操作还是不是太好想 直接dfs下去 不是最优的 一个节点最多保留两个度 如果它有两个以上的子节点 那么就与父节点断开 与k-2个子节点断开 再重新连 #pragma comment(l ...

  4. hadoop异常:java.lang.RuntimeException: java.lang.NoSuchMethodException

    出现异常的程序大致框架是这样的: public class getMaxTemperature extends Configured implements Tool { ... class MaxTe ...

  5. sql 不同server間寫入數據

    select * from sys.servers sp_dropserver @server =N'' sp_dropserver '' ,'droplogins' EXEC master.dbo. ...

  6. Linux Kernel ‘drivers/staging/wlags49_h2/wl_priv.c’本地缓冲区溢出漏洞

    漏洞名称: Linux Kernel ‘drivers/staging/wlags49_h2/wl_priv.c’本地缓冲区溢出漏洞 CNNVD编号: CNNVD-201311-068 发布时间: 2 ...

  7. jQuery里面的datepicker日期控件默认是显示英文的,如何显示中文或其他语言呢?

    jQuery里面的datepicker日期控件默认是显示英文的,如何让他显示中文或其他呢? [官方的写法]: (1)引入JS文件: <script type="text/javascr ...

  8. ms sql server缓存清除与内存释放

    Sql Server系统内 存管理在没有配置内存最大值,很多时候我们会发现运行Sql Server的系统内存往往居高不下.这是由于他对于内存使用的策略是有多少闲置的内存就占用多少,直到内存使用虑达到系 ...

  9. bss段为什么要初始化,清除

    我们都知道bss段需要初始化,但是这是为什么呢? 通过浏览资料,我们都会发现,bss段是不会出现在程序下载文件(*.bin *.hex)中的,因为全都是0.如果把它们出现在程序下载文件中,会增加程序下 ...

  10. shell if语句

    方法1: if list :then    #注意,这里是因为放一行了,所以要有";",如果then在下一行就不用“:”了          do something here   ...