0

Refresh Listbox during long DB operation

asked 2012-09-07 08:07:39 +0800

rappr gravatar image rappr
48

Hi all,

I have a long import operation into a database.
The DB import proc writes log info into a table.

I show the log table in a Listbox.

What I want to do:
- start the import proc
- refresh the Listbox with the log periodically to show the current log info

What is the best way to do this?

Thanks for any help.

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2012-09-07 12:06:42 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

Have you try it with a timer component?

link publish delete flag offensive edit

answered 2012-09-07 14:10:11 +0800

rappr gravatar image rappr
48

Yes, I did.
But the upload and import blocks the GUI ("Processing...").

link publish delete flag offensive edit

answered 2012-09-10 14:35:49 +0800

rappr gravatar image rappr
48

Hi,

I got a hint to do it with EventQueue und timer.
See http://www.zkoss.org/forum/listComment/20520/1/20.

Is this the prefered way to do this (refresh GUI while long operation)?

Regards
Ralf

link publish delete flag offensive edit

answered 2012-09-10 20:22:08 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

It seems the best way to do such things. The timer can (if data is changed) publish in the EventQueue. That's what servlet engine technique offered.
An interesting point is 'WebSockets' (WebSocketServer) but it's an other technologie.

best
Stephan

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-09-07 08:07:39 +0800

Seen: 122 times

Last updated: Sep 10 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More