oracle Form Builer:ID_NULL Built-in
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的更多相关文章
- 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 ...
- [转]Oracle Form 触发器执行顺序
Trigger 不是数据库中的触发器,不过功能类似,都是当某个事件发生的时候会触发. Trigger中可以编写代码,当对应事件发生的时候就会执行该Trigger中的代码. Oracle Form中的T ...
- Standard Attachments in Oracle Form 标准附件
Standard Attachments in Oracle Form 默认情况下"附件"按钮是灰色的,本文将展示如何让某个Form的附件按钮变亮,并能上传附件. 以用户Form为 ...
- [Form Builder]Oracle Form系统变量中文版总结大全
转:http://yedward.net/?id=57 Form中的系统变量,它存在于一个Form的整个运行时期的会话之中,变量包含了有关Form相关属性的字节信息.有些变量标明了当前状态,还有些变量 ...
- oracle form 触发器执行顺序及键定义[Z]
1当打开FORM时: (1)PRE-FORM (2)PRE-BLOCK(BLOCK级) (3)WHEN-NEW-FORM-INSTANCE (4)WHEN-NEW-BLOCK-INSTANCE (5) ...
- Oracle Form Builder
Oracle Form Builder 是Oracle的一个开发工具,可以针对Oracle公司的E-Business Suit的ERP系统开发的.对应的还有reports builder. Oracl ...
- Oracle Form's Trigger Tutorial With Sample FMB
Created an Oracle Form to handle specific events / triggers like When-New-Form-Instance, Pre-Insert, ...
- Oracle Form Data Entry Sample
I shared a data entry example form here in this post for Oracle Forms beginner developers, so that t ...
- 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 ...
随机推荐
- MySQL 内存监控
上一篇blog介绍了因为sql查询information_schema表而导致内存暴涨的case. 今天顺便做了一个thd内存的监控: 先来介绍下MySQL的内存: 1. 线程内内存:thd-> ...
- bzoj2738
感人肺腑pascal过不去系列,跪求开O2先不说这个了,学完cdq分治之后又顺手学了一下整体二分感觉这两个东西很多相似的地方,干脆都叫cdq分治好了二分解决k小就是设当前二分的答案为m,把x<= ...
- C#程序中访问配置文件
在C#编程中,有时候会用到配置文件,那么该如何在程序中获取或修改配置文件中的相关数据呢?下面采用一个简单的C#控制台程序来说明. 新建一个C#控制台程序,打开“解决方案资源管理器”,如下图: 可以看到 ...
- NuGet -- 如何创建及发布自己的程序包
STEP 1:在NuGet上注册并获取API Key 首先,你需要在NuGet(https://www.nuget.org/)上注册一个新的账号,然后在My Account页面,获取一个API ...
- 如果在Xcode6中创建空工程, 删除冗余信息
http://stackoverflow.com/questions/25783282/how-to-create-an-empty-application-in-xcode-6-without-st ...
- STL总结之functor
STL中仿函数是重要的组成部分.所谓的仿函数就是通过重载括号运算符实现的, 如下: STL库中都是泛型仿函数如小于操作: STL中定义了许多有用的操作,如less(小于), less_equal(小于 ...
- PV,UV,IP
参加了DTCC归来之后,各大电商技术大牛都会自豪的分享一下自己公司网站的PV,流量等等.当时也是一知半解,回来之后赶紧查了查,也算是扫扫盲. 以下摘自网络中,自己稍稍做了整理,对于PV,流量和带宽的理 ...
- aggregate 和 treeAggregate 的对比
1.定义 [aggregate] /** * Aggregate the elements of each partition, and then the results for all the pa ...
- leetcode 逆转字符串 当年的第一题,今天再写一遍,物是人非
public class Solution { public String reverseWords(String s) { if(s==null||s.length()==0) return &qu ...
- 拉普拉斯特征图降维及其python实现
这种方法假设样本点在光滑的流形上,这一方法的计算数据的低维表达,局部近邻信息被最优的保存.以这种方式,可以得到一个能反映流形的几何结构的解. 步骤一:构建一个图G=(V,E),其中V={vi,i=1, ...