Refresh / Updating a form screen in Oracle D2k Forms 6i

本文介绍如何在 Oracle D2k Forms6i 中通过过程显示记录处理进度或进度条,并确保屏幕更新平滑进行。文章提供了一个示例代码,展示了如何使用同步命令来更新屏幕,并在 when-new-form-instance 触发器中设置 :system.message_level 参数以避免进程被中断。

Refresh / Updating a form screen in Oracle D2k Forms 6i

Problem

You want to show number of records processed progress or a progress bar on form through a procedure. 

Solution

Declare
  nTotalRec Number := 10000;
  nCurrRec Number := 1;
Begin
   For i in 1..nTotalRec Loop
       :ablock.aitem := nCurrRec;
       Synchronize; -- this will update the screen
       --- do something here
       nCurrRec := nCurrRec + 1;
   End Loop;
End;

This will do the needfull. But during this process if anybody click on the form then it will not show the progress but processing will be continued. The solution of this problem is to put the below command in when-new-form-instance trigger:

:system.message_level := 5;

Now a smooth screen update will run.

You can ask any questing related to Oracle PLSQL and D2k through comment, I will give you soon reply.


vb-progress-bar-activex.jpg


Refreshing a form in Oracle

Reviewed by Vizu Fernandis on

Jan 06

Rating: 
5

转载于:https://www.cnblogs.com/quanweiru/p/6220034.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值