on 12-04-2006 12:11 PM
Hai,
I am using the ESS-framework and I want to create a link which calls an URL with dynamic parameters.
I have already created an URL-Iview with the example url:
http://a.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm
And I also defined a resource and a service in the backend (Customizing)
My question is:
How can I dynamically generate the Parameters SCENARIO and MODE in the url using the URL input field in the defined resource?
Hi Remco,
If you create several resources for the same webdynpro (isrform) you can pass params via the resource definition (URL params).
Your webdynpro application can be defined as:
- Webdynpro application (in the xss homepage framework) as a resource;
- URL resource linking to a portal page/iview (with params): url iview with params
- URL resource linking to a portal page/iview (with params): webdynpro iview with params
But before you are going to tweak with it, please try to find out if your url will work:
http://a.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm?scenaro=SPEG&mode=CREATE.
If this works, then create an iview in the portal of the url type or webdynpro type. Does it still work with static params? If so, remove the static params from your iview properties.
Now try the following link:
http://yourportal:port/irj/portal?NavigationTarget=pcd_path_to_your_iview
If this works, check out the following link:
Everything after DynamicParameter must be encoded. To find out what the encoding is, just use google and search for your characher. As an example (let's find the = sign):
http://www.google.nl/search?hl=nl&q=%3D&meta=
%3D is the = sign
Last step:
Create a resource as described on top of this post.
This will be my approach to get this working
Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Please see if this piece of code helps you for passing some parameters in the URL.
Map urlParameters = new HashMap();
// get URL parameter value entered by user
urlParameters.put("hugo",wdContext.currentContextElement().getUrlParamValue());
urlParameters.put("hugo1", wdContext.currentContextElement().getCust());
urlParameters.put("title",wdContext.currentContextElement().getParamTitle());
urlParameters.put("sap-wd-arfc-useSys",jcoParam);
String url = "";
String urlToTargetApp = "";
try {
// Get deployable object part of target application.
// Precondition: assume, that other application belongs to the same
// Web Dynpro Project (Deployable Object)
WDDeployableObjectPart deployableObjectPart =WDDeployableObject.getDeployableObjectPart(deployableObjectName,"InvoiceApp",WDDeployableObjectPartType.APPLICATION);
url = WDURLGenerator.getApplicationURL(deployableObjectPart);
// Get target URL based on deployable object part and URL parameters
urlToTargetApp =WDURLGenerator.getApplicationURL(deployableObjectPart,urlParameters);
// Fire exit plug to target URL
IWDWindow window =wdComponentAPI.getWindowManager().createExternalWindow(urlToTargetApp,"window title",true);
window.open();
} catch (WDURLException e) {
messageMgr.reportException(e.getLocalizedMessage(), false);
} catch (WDDeploymentException ex) {
messageMgr.reportException(ex.getLocalizedMessage(), false);
}
}
Thanks,
kris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kris,
First of all, thanks for your reply! Unfortunately it doesn't answer my question.
I am using the customizing steps within SAP ECC 5.0 for customizing the XSS Framework. In one of these steps called "define resources" you have the possibility to refer to an IView in the Portal (In my case an URL-IView) using a PDC path.
You can, within this customizing step, give some URL parameters and their values.
I am looking for a possibility to read these parameters and values using the URL Iview. In this IVIEW you define a "http path". My guess is that it is possible to use a statement like "Dynamic Parameters" but I don't know how.
Greetings,
Remco
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.