Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HOW TO REPL ACE A TIMER BY A JAVA BEANS

55930Aug 9 2005 — edited Aug 31 2005
Hi,

for increase my application performance, I read that I must change the timer by
a java bean, but I don't know how to do it I am not very confortable with java
tools.

my goal is :

- I have 2 blocks A , B
* the block B is only for display.
* after each insert in the block A we must insert automaticly in the block B,
then after inserting in the block A we insert in the block B and must refresh
the block B to display the new record insert in the block B.

- then I need in the post insert of the block we must made a go block to block B but this built-in (go_block) are not allowed in the post-insert trigger.

- for a workaround, I create a timer
the timer code :

* in the post-insert of the block A
IF Id_Null(RRE_POSTINS) THEN
RRE_POSTINS := Create_Timer('TIMER_RRE_POSTINS',1,NO_REPEAT);
ELSE
Set_Timer(RRE_POSTINS,1,NO_REPEAT);
END IF;

* the when timer expired :
expired_timer := GET_APPLICATION_PROPERTY(TIMER_NAME);
if expired_timer in ('TIMER_RRE_POSTINS') then
go_block('B');
execute_query;
end if;


how can do all thing by using a java bean component ?
is there any component to remplace the timer ?

thank's
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 28 2005
Added on Aug 9 2005
9 comments
717 views