0

zk-keikai- update multiple cells parallel at same time asynchronously

asked 2020-12-28 13:23:27 +0800

wastemails gravatar image wastemails
130 1 2

Can anybody help me how to update keikai spreadsheet cells in parallel at the same time asynchronously

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-12-29 09:23:30 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

Do you mean you want to implement your application logic in a thread separate from a servlet thread?

Please follow this https://www.zkoss.org/wiki/ZKDeveloper%27sReference/ServerPush/AsynchronousTasks

Then Call Range.setCellValues() in public void onEvent(Event event).

link publish delete flag offensive edit

Comments

Yes, followed the link. As per the document "there is at most one thread to access the UI of a given desktop" This means all UI updates are done one after other only. So setting each 100 values using Range.setCellValues() is consuming few ms of time. Updating such 'n' no of values is delayed.

wastemails ( 2020-12-29 10:26:21 +0800 )edit

Does Executions.schedule() fulfill your requirements?

hawk ( 2020-12-30 10:20:28 +0800 )edit
0

answered 2021-01-08 09:49:31 +0800

wastemails gravatar image wastemails
130 1 2

Yes, followed the link. As per the document "there is at most one thread to access the UI of a given desktop" This means all UI updates are done one after other only. So setting each 100 values using Range.setCellValues() is consuming few ms of time. Updating such 'n' no of values is delayed.

Looks like columns are getting updated serially (syncronously)

link publish delete flag offensive edit

Comments

I see. Your point is "synchronously". Yes, it's expected because javascript only supports single thread running. Updating cells in a browser relies on javascript

hawk ( 2021-01-11 09:17:25 +0800 )edit
Your answer
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: 2020-12-28 13:23:27 +0800

Seen: 7 times

Last updated: Jan 08 '21

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