Home » Developer & Programmer » Forms » how to use restricted procedure ???
icon9.gif  how to use restricted procedure ??? [message #138987] Mon, 26 September 2005 03:59 Go to next message
sharogrammer
Messages: 2
Registered: September 2005
Location: Egypt
Junior Member
hiii ...
i have case that i must use one of the restricted procedure ...
how can i over come this problem ... ???
Re: how to use restricted procedure ??? [message #139035 is a reply to message #138987] Mon, 26 September 2005 06:12 Go to previous message
NasirPanwar
Messages: 8
Registered: August 2005
Location: Faisalabad
Junior Member
create a timer in the location where you have to call the restricted procedure and call the restricted procedure in WHEN-TIMER-EXPIRED Procedure.

e,g.
PROCEDURE CREATE_MY_TIMER IS
    timer_id Timer; 
BEGIN
	   timer_id := Find_timer('MY_TIMER');
	     IF NOT ID_NULL(timer_id) then
	     	  delete_timer(timer_id);
	     END IF;

     timer_id := CREATE_TIMER('MY_TIMER', 1, NO_REPEAT); 
END;

WHEN-TIMER-EXPIRED TRIGGER
DECLARE
    v_CurTimer VARCHAR2(40) := Get_Application_Property(TIMER_NAME);
BEGIN
    IF v_CurTimer = 'MY_TIMER' THEN
       --execute your code here
    END IF;
END;

[Updated on: Mon, 26 September 2005 18:32] by Moderator

Report message to a moderator

Previous Topic: Hi Developers,
Next Topic: ORA-12203: TNS:unable to connect to destination
Goto Forum:
  


Current Time: Fri Sep 20 00:29:52 CDT 2024