EBS form日历可选范围设置(calendar.setup )介绍
2015-10-30 14:14
489 查看
Calendar是Template提供给我们的standard object.可以使我们方便的为日期型字段提供日期的选择列表.
form中设置日历方法:
1. 为日期型字段指定LOV(ENABLE_LIST_LAMP)
2. 在字段的KEY–LISTVAL事件中编写代码:Calendar.show
Calendar Package包含如下几个Procedure:
1. Calendar.show(first_date date default null)
显示日期选择列表. 默认参数为空,即当前日期为高亮.也可定义任意日期为高亮,即设置first_date.
日历可选范围设置方法:
2. Calendar.setup (new_type varchar2 --必填
,low_date date DEFAULT null --可选,为此日期之前
,high_date date DEFAULT null --可选,此日期之后
,sql_string varchar2 DEFAULT null);
(在show之前写!!)
设置日期范围.例:
A. calendar.setup(’WEEKEND’) 禁止选择周末.
B. calendar.setup(<30 char identifying name>, <low_date>,<high_date>); 禁止选择某一日期段,可重复使用.
C.calendar.setup(<30 char identifying name>, null, null,<SQL>); 禁止选择SQL提取出的日期清单.
D. calendar.setup(<30 char identifying name>, <low_date>,2009-01-01);只能选择2009-01-01后的日期.
E. calendar.setup(<30 char identifying name>, 2009-01-01,<high_date> );只能选择2009-01-01前的日期.
如下,只能选择当前日期之前的日期:
calendar.setup('lower then sysdate',SYSDATE,null);
form中设置日历方法:
1. 为日期型字段指定LOV(ENABLE_LIST_LAMP)
2. 在字段的KEY–LISTVAL事件中编写代码:Calendar.show
Calendar Package包含如下几个Procedure:
1. Calendar.show(first_date date default null)
显示日期选择列表. 默认参数为空,即当前日期为高亮.也可定义任意日期为高亮,即设置first_date.
日历可选范围设置方法:
2. Calendar.setup (new_type varchar2 --必填
,low_date date DEFAULT null --可选,为此日期之前
,high_date date DEFAULT null --可选,此日期之后
,sql_string varchar2 DEFAULT null);
(在show之前写!!)
设置日期范围.例:
A. calendar.setup(’WEEKEND’) 禁止选择周末.
B. calendar.setup(<30 char identifying name>, <low_date>,<high_date>); 禁止选择某一日期段,可重复使用.
C.calendar.setup(<30 char identifying name>, null, null,<SQL>); 禁止选择SQL提取出的日期清单.
D. calendar.setup(<30 char identifying name>, <low_date>,2009-01-01);只能选择2009-01-01后的日期.
E. calendar.setup(<30 char identifying name>, 2009-01-01,<high_date> );只能选择2009-01-01前的日期.
如下,只能选择当前日期之前的日期:
calendar.setup('lower then sysdate',SYSDATE,null);
相关文章推荐
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- Oracle Containers for J2EE远程安全漏洞(CVE-2014-0413)
- Oracle 10g R2不能使用EM的问题
- 表空间操作
- PreparedStatement中in子句的处理
- VMware下RedHat4.8_64位安装Oracle 10g RAC--简略脚本
- oracle sql日期比较
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- OS block size和Oracle block size,查找OS Blocksize的方法
- oracle中创建数据库和表空间的几点总结
- 数据库自动备份脚本
- oracle的nvl函数的使用介绍
- 解决oracle用户连接失败的解决方法
- oracle的一些tips技巧
- Oracle 下的开发日积月累
- Oracle存储过程之数据库中获取数据实例
- Windows下ORACLE 10g完全卸载的方法分析
- Oracle 函数大全[字符串函数,数学函数,日期函数]第1/4页
- ORACLE LATERAL-SQL-INJECTION 个人见解