Hello !!!
Is there a solution to the below problem.
Say "view1", "view2" are embeded in "window1". Now create a new window "window2" and embed the existing view "view1" into "window2". Now show the "window2" as a popup when a button in "view2" is pressed. I am using the following code
IWDWindowManager winMgr=wdComponentAPI.getWindowManager();
IWDWindowInfo Win2Inffo=wdComponentAPI.getComponentInfo().findInWindows("window2");
IWDWindow Win2=winMgr.createWindow(Win2Inffo,true);
Win2.open();
but than I get the following error
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Duplicate instance exception: There is already an instance of view view1 in component NotificationAdminComp.
at com.sap.tc.webdynpro.progmodel.controller.Component.addViewController(Component.java:129)
Any help will be appreciated/rewarded a lot.
Thanks