[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Timer on a Fix grid  XML
Forum Index -> Development
Author Message
rchiluano

Power User

Joined: 28/12/2017 07:21:54
Messages: 79
Offline

Hi captain. Fix grid didn't update accordingly. I tried to append some data to it from a database. But it did not update on the grid unless I invoke an action event(I put it on my constructor).
Is there another way to do this aside from timer?
Please see attached picture.

Thanks captain!

ryan
 Filename ya.PNG [Disk] Download
 Description
 Filesize 16 Kbytes
 Downloaded:  352 time(s)

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Refreshs of the UI always come through a request/response - this means they must be triggered by the client side, e.g. by pressing a button or whatever.

There are two components to trigger some "inivisble" update:

1. TIMER - this is nothing else than a button pressing periodically itself after some period of time
2. LONGPOLLING - this is a component that listens to a server side event (via URL); if the event occurs then the ACTIONLISTENER of the LONGPOLLING component is triggered.

So dependent on the situation you must use the corresponding component: TIMER for updates "every two minutes", and LONGPOLLING for real-server-side-eventing.

Regards, Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Check the demo workplace: General > Asynchronous processing.

Regards, Björn

Björn Müller, CaptainCasa GmbH
rchiluano

Power User

Joined: 28/12/2017 07:21:54
Messages: 79
Offline

Thanks captain!
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team