on 12-12-2007 1:41 PM
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
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
xxxxxxxxxxxxxxxxxxxxxxxxxx
Bala
Edited by: Armin Reichert on Dec 19, 2007 8:57 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.