PDA

View Full Version : [solved] destroy or close windows inside web desktop



falken1701
15 Nov 2010, 8:27 AM
I try around with the web desktop example. I cant destroy or close a window inside the desktop by function. I have the object but close or destroy will not work.

MyDesktop.getModule('grid-win') brings me the window object so that
MyDesktop.getModule('grid-win').destroy() has to destroy the object i think.

Where is the mistake?
Is there another way to get access to the windows inside the web desktop.

Michael

falken1701
15 Nov 2010, 11:14 AM
I had to use .getWindow(id) method on the desktop to get the right object. Than it was possible to close the window.

Sorry for wasting your time.

asd648524142
17 Nov 2010, 2:04 AM
You can use the desktop window's ID to get the window such as:

NewWindow.show (); this is shown. NewWindow. Close (); is closed.

<Click Handler="#{winCustomer}.show();" /> get the window controls in this way

Do not know does not help you solve.

Shadow