0

Fire global-command from another window

asked 2013-08-12 10:21:24 +0800

CR13 gravatar image CR13
36 1

updated 2013-10-31 05:08:41 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Hi!

I have a browser-window, from which i open a new window with:

Clients.evalJavaScript("window.open('zk/search/SearchResultList.zul','','top=100,left=200,height=600,width=800,scrollbars=1,resizable=1')");

This "zul"-file is attached to a viewmodel, from which i want to call:

BindUtils.postGlobalCommand(null, null, "openTreeView", params);

But the method "openTreeView" (which is implemented in another viewmodel) is never called...

Maybe there is someone, who can help me and making my two browser-windows communicate?

Thanks!

delete flag offensive retag edit

Comments

openTreeView will be in Parent view Model then it should called

sjoshi ( 2013-08-13 05:51:27 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-31 03:02:08 +0800

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

updated 2013-10-31 03:03:13 +0800

You have to apply @GlobalCommand on openTreeView() in a ViewModel before calling it.

link publish delete flag offensive 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
1 follower

RSS

Stats

Asked: 2013-08-12 10:21:24 +0800

Seen: 29 times

Last updated: Oct 31 '13

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