Views on new Window
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);
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
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,