NetTalk Central

Author Topic: Autorefresh a browse in a memory form  (Read 3106 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1848
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Autorefresh a browse in a memory form
« 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
-----------
Regards
Alberto

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Autorefresh a browse in a memory form
« Reply #1 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11192
    • View Profile
Re: Autorefresh a browse in a memory form
« Reply #2 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.

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Autorefresh a browse in a memory form
« Reply #3 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

Alberto

  • Hero Member
  • *****
  • Posts: 1848
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Autorefresh a browse in a memory form
« Reply #4 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?
« Last Edit: May 28, 2010, 03:21:28 AM by michelis »
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11192
    • View Profile
Re: Autorefresh a browse in a memory form
« Reply #5 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

Alberto

  • Hero Member
  • *****
  • Posts: 1848
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Autorefresh a browse in a memory form
« Reply #6 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.
« Last Edit: May 28, 2010, 04:05:13 AM by michelis »
-----------
Regards
Alberto