Oracle Form Data Entry Sample
I shared a data entry example form here in this post for Oracle Forms beginner developers, so that they may take an idea to how to develop a simple data entry form in Oracle Forms. The form can be fully modified.
Example is given for an emp table and other related tables. You can download Emp.fmb form from Google drive by clicking here Emp.Fmb Form
To run this form you would require some tables in Payroll schema, so create a user/schema with name Payroll and run the following script:
-- start
CREATE TABLE DESIG
(
DNAME VARCHAR2(60 BYTE)
);
CREATE TABLE DEPT
(
DNAME VARCHAR2(60 BYTE)
)
;
CREATE TABLE EMP
(
ECODE VARCHAR2(10 BYTE),
ENAME VARCHAR2(60 BYTE),
DESIG VARCHAR2(60 BYTE),
DEPT VARCHAR2(60 BYTE),
ADDR1 VARCHAR2(60 BYTE),
ADDR2 VARCHAR2(60 BYTE),
CITY VARCHAR2(30 BYTE),
STATE VARCHAR2(30 BYTE),
PINCODE VARCHAR2(6 BYTE),
PHONE VARCHAR2(30 BYTE),
DOJ DATE,
DOR DATE,
DOP DATE,
PFNO VARCHAR2(30 BYTE),
ESINO VARCHAR2(60 BYTE),
BASIC NUMBER(10) DEFAULT 0,
HRA NUMBER(10) DEFAULT 0,
CONV NUMBER(10) DEFAULT 0,
MEDC NUMBER(10) DEFAULT 0,
BONUS NUMBER(10) DEFAULT 0,
TEL NUMBER(10) DEFAULT 0,
OTHA NUMBER(10) DEFAULT 0,
CL NUMBER(3) DEFAULT 0,
EL NUMBER(5) DEFAULT 0,
SL NUMBER(3) DEFAULT 0,
PFA NUMBER(10) DEFAULT 0,
TDS NUMBER(10) DEFAULT 0,
TDSMB NUMBER(2) DEFAULT 0,
ADVTOTAL NUMBER(10) DEFAULT 0,
ADVDED NUMBER(10) DEFAULT 0,
BANKAC VARCHAR2(50 BYTE),
FY VARCHAR2(9 BYTE),
CP VARCHAR2(30 BYTE),
FYCP VARCHAR2(40 BYTE),
ESI NUMBER(10,2),
TDSDED NUMBER(10,2)
)
;
CREATE TABLE FYCPT
(
FY VARCHAR2(9 BYTE),
CP VARCHAR2(30 BYTE),
FYCP VARCHAR2(40 BYTE)
)
;
CREATE TABLE MNTRANS
(
TRANID NUMBER(10),
TRANDATE DATE,
ECODE VARCHAR2(10 BYTE),
ENAME VARCHAR2(60 BYTE),
NOOFABS NUMBER(3),
NOOFWD NUMBER(3),
NETBASIC NUMBER(10,2),
NETCONV NUMBER(10,2),
NETMED NUMBER(10,2),
NETBONUS NUMBER(10,2),
NETTEL NUMBER(10,2),
NETHRA NUMBER(10),
OT_HRS NUMBER(10),
OT_HRSAMT NUMBER(10,2),
OT_SAL NUMBER(10,2),
OTHER_A NUMBER(10),
GRS_SAL NUMBER(10,2),
PFA NUMBER(10),
ESIA NUMBER(10),
TDS NUMBER(10,2),
ADVI NUMBER(10),
OTH_DED NUMBER(10),
NETPAYABLE NUMBER(10,2),
CLT NUMBER(2),
ELT NUMBER(2),
SLT NUMBER(2),
TL NUMBER(2),
CAA VARCHAR2(1 BYTE),
FY VARCHAR2(9 BYTE),
CP VARCHAR2(30 BYTE),
FYCP VARCHAR2(40 BYTE),
FOR_MNTH VARCHAR2(20 BYTE),
FOR_YEAR NUMBER(4)
)
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
SET DEFINE OFF;
Insert into DEPT
(DNAME)
Values
('COMMERCIAL');
Insert into DEPT
(DNAME)
Values
('MAINT & SUPPORT');
Insert into DEPT
(DNAME)
Values
('SYSTEMS');
Insert into DEPT
(DNAME)
Values
('OPERATIONS');
Insert into DEPT
(DNAME)
Values
('QUALITY CONTROL');
Insert into DEPT
(DNAME)
Values
('ACCOUNTS');
Insert into DEPT
(DNAME)
Values
('PACKING & DISPATCH');
Insert into DEPT
(DNAME)
Values
('ADMINISTRATION');
Insert into DEPT
(DNAME)
Values
('STORE');
Insert into DEPT
(DNAME)
Values
('MAINTENANCE');
Insert into DEPT
(DNAME)
Values
('DESIGNING');
Insert into DEPT
(DNAME)
Values
('PURCHASE & STORE');
COMMIT;
SET DEFINE OFF;
Insert into DESIG
(DNAME)
Values
('AGM');
Insert into DESIG
(DNAME)
Values
('CHIEF MANAGER');
Insert into DESIG
(DNAME)
Values
('SR. MANAGER');
Insert into DESIG
(DNAME)
Values
('MANAGER');
Insert into DESIG
(DNAME)
Values
('SCY. TO CMD & COMPLIANCE OFFICER');
Insert into DESIG
(DNAME)
Values
('DY. MANAGER');
Insert into DESIG
(DNAME)
Values
('ASST. MANAGER');
Insert into DESIG
(DNAME)
Values
('SR. EXECUTIVE');
Insert into DESIG
(DNAME)
Values
('EXECUTIVE');
Insert into DESIG
(DNAME)
Values
('OMR OPERATOR');
Insert into DESIG
(DNAME)
Values
('SR. ASSISTANT');
Insert into DESIG
(DNAME)
Values
('ASSISTANT');
Insert into DESIG
(DNAME)
Values
('MANAGER SYSTEMS');
COMMIT;
SET DEFINE OFF;
Insert into EMP
(ECODE, ENAME, DESIG, DEPT, ADDR1,
ADDR2, CITY, STATE, PINCODE, PHONE,
DOJ, DOR, DOP, PFNO, ESINO,
BASIC, HRA, CONV, MEDC, BONUS,
TEL, OTHA, CL, EL, SL,
PFA, TDS, TDSMB, ADVTOTAL, ADVDED,
BANKAC, FY, CP, FYCP, ESI,
TDSDED)
Values
('1000', 'ABC', 'xyz', 'abc', NULL,
NULL, 'NEW DELHI', 'DELHI', '110020', NULL,
TO_DATE('08/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), NULL, NULL, '12345', '654123',
8000, 2500, 500, 1000, 5000,
500, 250, 7, 31, 8,
780, 1000, 5, 10000, 500,
'254252525632548', '2010-2011', 'LTD.', '2010-2011 INTERNATIONAL LTD.', 210,
NULL);
Insert into EMP
(ECODE, ENAME, DESIG, DEPT, ADDR1,
ADDR2, CITY, STATE, PINCODE, PHONE,
DOJ, DOR, DOP, PFNO, ESINO,
BASIC, HRA, CONV, MEDC, BONUS,
TEL, OTHA, CL, EL, SL,
PFA, TDS, TDSMB, ADVTOTAL, ADVDED,
BANKAC, FY, CP, FYCP, ESI,
TDSDED)
Values
('93', 'VINISH KAPOOR', 'MANAGER SYSTEMS', 'OPERATIONS', 'MARIYAM NAGAR',
NULL, 'GHAZIABAD', 'UP', '110020', '9540377373',
TO_DATE('01/10/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), NULL, NULL, NULL, NULL,
10000, 4000, 1000, 1000, 5000,
1000, 2000, 7, 31, 8,
780, 2000, 2, 50000, 1000,
NULL, '2010-2011', 'INTERNATIONAL LTD.', '2010-2011 INTERNATIONAL LTD.', 0,
NULL);
Insert into EMP
(ECODE, ENAME, DESIG, DEPT, ADDR1,
ADDR2, CITY, STATE, PINCODE, PHONE,
DOJ, DOR, DOP, PFNO, ESINO,
BASIC, HRA, CONV, MEDC, BONUS,
TEL, OTHA, CL, EL, SL,
PFA, TDS, TDSMB, ADVTOTAL, ADVDED,
BANKAC, FY, CP, FYCP, ESI,
TDSDED)
Values
('93993', 'VIN', 'AGM', 'ACCOUNTS', NULL,
NULL, 'NEW DELHI', 'DELHI', '110020', NULL,
TO_DATE('01/01/2000 00:00:00', 'MM/DD/YYYY HH24:MI:SS'), NULL, NULL, NULL, NULL,
33333, 0, 0, 0, 0,
0, 0, 7, 31, 8,
780, NULL, 1, NULL, NULL,
NULL, 'FY', 'FY', 'FY', 0,
NULL);
COMMIT;
SET DEFINE OFF;
Insert into FYCPT
(FY, CP, FYCP)
Values
('2010-2011', 'INTERNATIONAL LTD.', '2010-2011 INTERNATIONAL LTD.');
COMMIT;
-- end
Oracle Form Data Entry Sample的更多相关文章
- 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 触发器执行顺序
Trigger 不是数据库中的触发器,不过功能类似,都是当某个事件发生的时候会触发. Trigger中可以编写代码,当对应事件发生的时候就会执行该Trigger中的代码. Oracle Form中的T ...
- Standard Attachments in Oracle Form 标准附件
Standard Attachments in Oracle Form 默认情况下"附件"按钮是灰色的,本文将展示如何让某个Form的附件按钮变亮,并能上传附件. 以用户Form为 ...
- form data和request payload的区别
HTML <form> 标签的 enctype 属性 在下面的例子中,表单数据会在未编码的情况下进行发送: <form action="form_action.asp&qu ...
- AngularJS $http配置为form data 提交
AngularJS $http配置为form data 提交 $scope.formData = {}; $http({ method: 'POST', url: '/user/', // pass ...
- Web 前沿——HTML5 Form Data 对象的使用
XMLHttpRequest Level 2 添加了一个新的接口——FormData.利用 FormData 对象,我们可以通过 JavaScript 用一些键值对来模拟一系列表单控件,我们还可以使用 ...
- HTTP请求中的form data和request payload的区别
HTML <form> 标签的 enctype 属性 在下面的例子中,表单数据会在未编码的情况下进行发送: <form action="form_action.asp&qu ...
- [整理]Ajax Post请求下的Form Data和Request Payload
Ajax Post请求下的Form Data和Request Payload 通常情况下,我们通过Post提交表单,以键值对的形式存储在请求体中.此时的reqeuest headers会有Conten ...
- AJAX POST请求中参数以form data和request payload形式在servlet中的获取方式
转载:http://blog.csdn.net/mhmyqn/article/details/25561535 HTTP请求中,如果是get请求,那么表单参数以name=value&name1 ...
随机推荐
- 百度开源富文本编辑器 UEditor配置:图片上传和文件上传独立使用方法
使用UEditor编辑器自带的插件实现图片上传和文件上传功能,这里通过配置UEditor单独使用其内置的第三方插件swfupload来实现图片和文件的上传,通过对UEditor配置轻松实现图片批量上传 ...
- (一)jvm
jvm,作为java平台通用性的实现基础,重要性不言而喻. 1.开发新项目,写运行脚本时要运用相关知识,确定jvm参数 2.维护老项目,需要对jvm进行性能调优 jvm内存划分: 1.程序计数器 2. ...
- Laravel-5.1 ---- 将mews captcha整合到项目中!
经过摸索,终于能在laravel 5.1中应用验证码了. 因为英语渣五水平,所以几乎没搜索到什么有用的,于是考虑在github上搜索验证码包! 提示: github上的package中往往会有使用说明 ...
- IE8兼容H5语义标签
//IE浏览器定义的特殊属性,通过hack方式判断IE版本来执行不同的代码,IE8以下浏览器自动创建html5语义标签,从而实现兼容<!--[if lte IE 8] <script sr ...
- 交流从选择coding.net开始
之前提到我们需要coding.net(一个可以帮助你在线存放管理代码的地方,便于项目合作)来进行学习交流,它可以帮我们记录我们入门的点点滴滴,现在就简单介绍一下coding.net的注册及使用. 1. ...
- 深入理解Spark RDD
RDD是什么? RDD,全称是Reslilient Distributed Datasets,是一个容错的,并行的数据结构,可以让用户显式地将数据存储到磁盘和内存中,并能控制数据的分区.同时,RDD还 ...
- StringUtils.isEmpty和StringUtils.isBlank用法
StringUtils 方法的操作对象是 java.lang.String 类型的对象,是 JDK 提供的 String 类型操作方法的补充,并且是 null 安全的(即如果输入参数 String 为 ...
- 纯CSS实现tooltip提示框,CSS箭头及形状之续篇--给整个tooltip提示框加个边框
在前面一篇中我们介绍了纯CSS实现tooltip提示框,通俗的讲也就是CSS箭头及形状 不过注意一点是,他始终是一个元素,只是通过CSS实现的,今天我们要说的是给这个“tooltip提示框”整体加一个 ...
- 多线程 - CountDownLatch
一个同步辅助类,在完成一组正在其他线程中执行的操作之前,它允许一个或多个线程一直等待. 用给定的计数 初始化 CountDownLatch.由于调用了 countDown() 方法,所以在当前计数到达 ...
- Fiddler-009-AutoResponder 简单的 MOCK SERVER 应用实例
在我们日常的测试中经常需要测试特定的响应对应的客户端展示样式是否正确无误,实现测试方法一般有如下三种: 创建新的测试数据(工作量较大) 修改已有测试数据(例如修改对应的状态码,若是最终需要测试的按钮状 ...