cancel
Showing results for 
Search instead for 
Did you mean: 

how do i retrieve the url for external window

Former Member
0 Kudos

Hi forum

I have created a new application in my existing proj. In the existing proj i have a button on click of which i need to call the view of the new application i hv used the following code, but i dnt know how to retrieve the url for this new application.

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

IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createExternalWindow(url, window name, false);

Thanks & Regards

Jaspreet Kaur

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

try with this

String deployableObjectName =

wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();

Map urlParameters = new HashMap();

// get URL parameter value entered by user, stored in context attribute

// ‘UrlParamValue’. Put parameter ‘hugo’ in the sneak preview version.

urlParameters.put("hugo",

wdContext.currentContextElement().getUrlParamValue());

reference is

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/user-interface...

xxxxxxxxxxxxxxxxxxxxxxxxxx

Bala

Edited by: Armin Reichert on Dec 19, 2007 8:57 PM

Former Member
0 Kudos

How do i provide or assign a url for my new window to be redirected to.

Thanks & Regards

Jaspreet Kaur

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank u all for providing me solutions. I shall try them out later actually my requirement changed, so am closing this thread.

Thanks & Regards

Jaspreet Kaur Grewal

Former Member
0 Kudos

Hi,

If you have an application associated this window you can create the URL as mentioned below

WDDeployableObjectPart deployableObjectPart = wdComponentAPI.getDeployableObjectPart();

try {

WDURLGenerator.getApplicationURL(deployableObjectPart);

} catch (WDURLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

OR

try {

String url = WDURLGenerator.getApplicationURL("<deployableObjectName>", "<applicationPartName>");

} catch (WDURLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url , "title");

window.show();

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

Try this:

//for e.g. this can be used as 
//WDURLGenerator.getApplicationURL("sap.com/tc~navtest","NavigatorTesterApp");
String appUrl = WDURLGenerator.getApplicationURL("<vendor>/<dc name>","<application name>");

IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createExternalWindow(appURL, window name, false);

Regards,

Satyajit.