Refreshing data from database with scheduler

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Refreshing data from database with scheduler

Mikko Wuokko
Hi.

I got this kind of situation.

I have a database with user information names, timestamps etc. Now I can
  fetch the data from the database and even start a scheduler which
updates a single users status say like every 5 secs. But what I would to
do is update the list of users from the database and refresh the data I
had previously fetched with current data to the screen without full page
refresh.

I can add a query to the .xpl file which does the refreshing of current
user (the one called by the scheduler) but how do I use the results to
change the data on the screen I don't know. It can be refreshed with
"F5" but I would like the data to be refreshed without refreshing the
whole screen.

There were some mails concerning "Force refresh" but they didn't seem
too helpful.

-Mikko



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Refreshing data from database with scheduler

Erik Bruchez
Administrator
Mikko Wuokko wrote:

> Hi.
>
> I got this kind of situation.
>
> I have a database with user information names, timestamps etc. Now I can
>  fetch the data from the database and even start a scheduler which
> updates a single users status say like every 5 secs. But what I would to
> do is update the list of users from the database and refresh the data I
> had previously fetched with current data to the screen without full page
> refresh.
>
> I can add a query to the .xpl file which does the refreshing of current
> user (the one called by the scheduler) but how do I use the results to
> change the data on the screen I don't know. It can be refreshed with
> "F5" but I would like the data to be refreshed without refreshing the
> whole screen.
>
> There were some mails concerning "Force refresh" but they didn't seem
> too helpful.
Currently, if you want to do this asynchronously, you can't, at least
not with XForms only. But if you accept having something like a
"Refresh" button on your page, then you can use that to periodically
retrieve XForms instances, each containing the list of items to display
in the lists. Then, with xforms:itemset, each list is automatically updated.

-Erik



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Refreshing data from database with scheduler

Mikko Wuokko
Thanks.

We'll have to figure something out.

-Mikko

Erik Bruchez wrote:

> Mikko Wuokko wrote:
>> Hi.
>>
>> I got this kind of situation.
>>
>> I have a database with user information names, timestamps etc. Now I
>> can  fetch the data from the database and even start a scheduler which
>> updates a single users status say like every 5 secs. But what I would
>> to do is update the list of users from the database and refresh the
>> data I had previously fetched with current data to the screen without
>> full page refresh.
>>
>> I can add a query to the .xpl file which does the refreshing of
>> current user (the one called by the scheduler) but how do I use the
>> results to change the data on the screen I don't know. It can be
>> refreshed with "F5" but I would like the data to be refreshed without
>> refreshing the whole screen.
>>
>> There were some mails concerning "Force refresh" but they didn't seem
>> too helpful.
>
> Currently, if you want to do this asynchronously, you can't, at least
> not with XForms only. But if you accept having something like a
> "Refresh" button on your page, then you can use that to periodically
> retrieve XForms instances, each containing the list of items to display
> in the lists. Then, with xforms:itemset, each list is automatically
> updated.
>
> -Erik
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws