Sunday, March 6, 2011

Use Timer in D2K Form

Trigger : Timer Expir
declare
timer_id timer;
one_minute number := 1000;
begin
select to_char(sysdate,'HH12:MI:SS AM') into :ITEM8 from dual;
synchronize;
end;

Trigger : when_new_form_instance
set_window_property(forms_mdi_window,window_state,maximize);
set_window_property('window1',window_state,maximize);
declare
timer_id timer;
one_minute number := 1000;
begin
:system.message_level:=25;
select to_char(sysdate,'HH12:MI:SS AM') into :ITEM8 from dual;
synchronize;
timer_id := CREATE_TIMER('emp_timer', one_minute, REPEAT);
SYNCHRONIZE;
END;

No comments:

Post a Comment