cancel
Showing results for 
Search instead for 
Did you mean: 

URL Parameters

Former Member
0 Kudos

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 ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

former_member197348
Active Contributor
0 Kudos

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