oracle calendar,Date Picker Calendar For Oracle Forms 6i

Giving date picker calendar option to user for date type fields in Oracle Forms. I am providing you the form (FoxCal.Fmx) and two libraries (General.plx and Calendar.pll). You can download these files by clicking below link: Like us to get notifications for free source code in future, thanks.

How To Use

It is very simple to use, no need to attache any library to your form, just copy all three files to your current working directory of your application. Suppose you have a form and there is one or many date date type fields in the form. You have to create key-listval trigger for those date type fields or create a push button adjacent to those fields and paste the below code in when-button-pressed trigger:

DECLAREpl_id paramList;begin:GLOBAL.G_LOV_DATE := TRUNC(SYSDATE);pl_id := Get_Parameter_List(‘foxcal‘);IF NOT Id_Null(pl_id) THENdestroy_parameter_list(pl_id);end if;pl_id := create_parameter_list(‘foxcal‘);add_parameter(pl_id, ‘XPOS‘, text_parameter, to_char(50));add_parameter(pl_id, ‘YPOS‘, text_parameter, to_char(100));add_parameter(pl_id, ‘CURRDATE‘, text_parameter, to_char(Sysdate));add_parameter(pl_id, ‘Label‘, text_parameter, ‘Date Picker‘);CALL_FORM(‘foxcal‘, no_hide, do_replace, query_only, no_share_library_data, pl_id);:yourdateitem := :Global.G_LOV_Date;erase(‘Global.G_LOV_DATE‘);END;

Note: Your current working directory for form designer and runtime should be the directory where you copied the above mentioned three files.

Download the demo form from the following linkDate Picker Demo

cal.PNG

原文:http://www.cnblogs.com/quanweiru/p/6219963.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值