Home » Developer & Programmer » Forms » logout form  () 1 Vote
logout form [message #174976] Wed, 31 May 2006 05:22 Go to next message
rakas22
Messages: 29
Registered: May 2006
Junior Member
hi all,

i want to make the form to be used for only 15 mins by my user. how to perform this. either by timer object or session property.
please help me.
Re: logout form [message #174981 is a reply to message #174976] Wed, 31 May 2006 05:44 Go to previous messageGo to next message
rakas22
Messages: 29
Registered: May 2006
Junior Member
pls give some ideas to solve this.
i want to make my form to run only for 15 mins. after that it should show a alert message to continue or close.
pls help me
Re: logout form [message #175012 is a reply to message #174976] Wed, 31 May 2006 07:15 Go to previous messageGo to next message
jowahl
Messages: 82
Registered: May 2006
Member
this is a sample with timer:
in PRE-FORM or WHEN-NEW-FORM trigger create this procedure:

DECLARE
v_timer_id TIMER;
BEGIN
--
v_timer_id := FIND_TIMER('MY_TIMER');
--
IF ID_NULL(v_timer_id) THEN
v_timer_id := CREATE_TIMER('MY_TIMER', <duration>, NO_REPEAT);
--
ELSE
--
SET_TIMER(v_timer_id, <duration>, NO_REPEAT);
--
END IF;
--
END;

create a WHEN-TIMER-EXPIRED trigger and insert:

EXIT_FORM(NO_VALIDATE);
Re: logout form [message #175023 is a reply to message #175012] Wed, 31 May 2006 07:48 Go to previous messageGo to next message
rakas22
Messages: 29
Registered: May 2006
Junior Member
thank you so much. iam getting .
Re: logout form [message #175240 is a reply to message #175012] Thu, 01 June 2006 06:53 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I just hope that the user isn't half way through their data entry and went for a cup of coffee. Or you have a really big text field into which they have been typing.

David
Previous Topic: package
Next Topic: list item & radio groups
Goto Forum:
  


Current Time: Fri Sep 20 09:24:16 CDT 2024