NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on May 27, 2010, 02:56:31 AM

Title: Autorefresh a browse in a memory form
Post by: Alberto on May 27, 2010, 02:56:31 AM
Hi,
I have a browse in a memory form.
The berowse reads from a table that is updated by another app.
I need the browse (not the entire form/page) to be refreshed each nn minutes.
How can I do it?
Thanks
Alberto
Title: Re: Autorefresh a browse in a memory form
Post by: kevin plummer on May 27, 2010, 03:12:00 PM
On your advanced tab of the browse template right down the bottom is a Timer and refresh drop box. I have my one set to Current.
Title: Re: Autorefresh a browse in a memory form
Post by: Bruce on May 27, 2010, 11:09:44 PM
Be aware that _every_ user with this page open will generate a request at whatever time interval you select. So 100 users means 100 requests. And the user can quite easily go away from their desk for long periods of time (like all weekend) leaving this on. So be cautious when using timers, and pay particular attention to the frequency of the updates. nn minutes is better than nn seconds.
Title: Re: Autorefresh a browse in a memory form
Post by: kevin plummer on May 27, 2010, 11:13:43 PM
Is there any way to stop it after nn minutes or after xx requests?

I have one set on a browse to see if a report has completed yet and have to set it to nn seconds
Title: Re: Autorefresh a browse in a memory form
Post by: Alberto on May 28, 2010, 03:04:55 AM
What happens when the user is "logouted" by the server session timeout?
Assuming the _User must be login_ check is on...
Will the browse go to the login page automátically?
Alberto

PD: I was trying to check the above idea, set the session timeout to 00:01 (one min) and the browse timer to 15 secs and realized that the session timeout does not work. After the minute I can use the browse and even refresh the page without forcing me to login again.
What am I doing wrong?
Title: Re: Autorefresh a browse in a memory form
Post by: Bruce on May 28, 2010, 03:47:21 AM
No, a session on a timer is unlikely to end, because the very act of refreshing the page refreshes the session time. The whole measure of a session is time since the last activity.

cheers
Bruce
Title: Re: Autorefresh a browse in a memory form
Post by: Alberto on May 28, 2010, 03:59:03 AM
Understood...
Then with a browse with a timer the user will be logged in for ever.
Is there any chance to add an _absolute_ timeout?
Lets say after one our to be logged in the user is force to logged in again?
Thanks

PD: I´ve realized that when the browse is autorefreshed by the timmer, all the navigation buttons (first,previous,next and last) are enabled even if you are still in the first page.