Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Views on new Window

Hi,

I need to open multiple various views on new window. I have a window named "PopupWindow" to which i have embedded multiple views. How will i show different views based on the user actions. My code goes like this

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

IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);

wdContext.currentContextElement().setWindowInstance(window);

window.setWindowPosition(WDWindowPos.CENTER);

window.open();

-


rt now it opens one view which i had embedded. How will i call different views. Wht code need to be written to show a particular view? Pls help

Former Member
Former Member replied

Hi Sujesh,

In case you don't want to use the event, the simple way is:

1)Create an attribute in your controller which will hold some value o which the flow is decided.

2) Map the attribute to your parent view and your default view in your popup window.

3) Update the attribute from your parent view.

4) Open the window through your code

5) In the doInit() method of your default view, read the value of the mapped attribute and fire the plugs accordingly. (Ofcourse you should have created plugs to the rest of the views).

Hope this helps,

Best Regards,

Nibu.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question