Skip to Content

Show a View in a separate Window

Hi there,

I have an application that shows the users favorites Assets in a tree. He can press a customize button and a window should popup showing two trees where the user can selected and deselect new favorites (via moving nodes and leaves from the one tree to the other tree).

My application consists of a custom controller and two views. Both view contexts are mapped to nodes in the custom controller.

When I press the button "customize" on the first view I want to open the second view in a new window.

How can I create such a new Window showing a view or maybe a window of the same application.

I found the following:

wdThis.wdGetAPI().getComponent().getWindowManager().createExternalWindow(URL, boolean) that would work fine if I had no mapped contexts to start a separat application.

wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(IWDWindowInfo, boolean) but I don't know how I can get the IWDWindowInfo of a window in my application.

I would appreciate if someone could provide my some hints and maybe some sample code lines.

Thanks in advance.


Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2004 at 08:32 AM

    Hi Alex,

    the following line will return the window info of window "Sample", which is part of the current component:

    IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows("Sample");

    Hope that helps.



    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 13, 2004 at 07:45 AM

    Hi Stefan.

    Thank you very much. That was just a single code line but that helped my to solve the problem. The window appears now in a separated frame like the confirmation dialog.

    Have a nice day.


    Add comment
    10|10000 characters needed characters exceeded