Updating board in oracle form

偶尔善良 提交于 2020-02-06 09:13:04

问题


Is there anything like thread in Oracle forms for updating one part? I want to create a message box and update that part with the new events, so I need to have something like thread or Timer in my oracle form. Any examples or ideas?

I am working with Oracle forms 6i, but I can convert to 10g also. My oracle server version is 9.


回答1:


The help file/ online documentation in Oracle Forms features sample code on creating timers.

Create a timer, perhaps under WHEN-NEW-FORM-INSTANCE trigger

DECLARE
    timer_id timer;
begin
    timer_id := CREATE_TIMER('TIMER1',20000,REPEAT);
end;

This will create a repeating timer which will fire every 20 seconds.

Now under WHEN-TIMER-EXPIRED trigger write the timer expiration handler

declare 
     timer_id timer;

begin
     -- code for updating the relevant field(s) 
end;


来源:https://stackoverflow.com/questions/4846821/updating-board-in-oracle-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!