on 08-21-2009 8:09 PM
Please how can I use URL parameters on a webdynpro application ?
Do I need to create any configuration on application ? How can I get the parameters inside the webdynpro component ?
Yes you can pass url parameters to a web dynpro application.
if the launch URL is
http://am270s6410:50200/webdynpro/dispatcher/local/WDApp2/WDApp2?SAPtestId=16&forumID=testForum
This code can reside directly in the view or the controller.
String str = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("forumID");
Thanks,
GLM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can configure URL parameters in two ways.
1.In the portal, open Content Administration, navigate to iView created for your WD application.
in iView properties, Parameters property in that enter parameters like this format
name = "PARAM1"&name ="Value"
2.In NWDS, Select your application->right click & select Edit option -> Open Application Properties Tab
Select New . Select Self defined radio button -> Click on Browse
Enter Name(say PARAM1), Value
Click Finish button.
After configuring URL parameters you can get those parameters in WD component using the following code sample,
String value = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("PARAM1");
if (value != null && !value.equalsIgnoreCase(""))
{
//DO YOUR CODING
}
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
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.