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.

Alex

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

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.

    Regards

    Stefan

    Add a 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.

    Alex

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.