cancel
Showing results for 
Search instead for 
Did you mean: 

open wd view in new window in portal

Former Member
0 Kudos

Hi

I have small application with two views in the WD application

i have established plugs and navigation links between these two views.

I have created WD ivew for these application in the portal.

when i run the application in the portal first i will show the first view of Wd applicatioa and when i click submit button in the first view it should navigate to second view in the new Internet Explor window.

let me know how to slove this problem

regards

mmukesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi create the new application name and new window name add the second view into that newly created window.

goto the newly created application properties and call the first applicationwindowinterfaceview.

And in first view button action add this code. it will work.

String url ="";

String depObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();

try {

WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"Newapplicationname",WDDeployableObjectPartType.APPLICATION);

url = WDURLGenerator.getApplicationURL(depObjectpart) ;

wdComponentAPI.getMessageManager().reportSuccess(url);

} catch (Exception e) {

}

IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(url,"Pdfwindow",true);

window.setWindowSize(500,500);

window.setWindowPosition(WDWindowPos.CENTER);

window.open();

Thanks,

Lohi.