on 10-13-2005 6:59 PM
Does anyone know the API to get the passed application parameter tkrough the request? We can add request parameter to the WebDynPro iView. I need to know how to retrieve it from WebDynPro.
I tried below but it does not contain the parameters.
Any help is much appreciated.
HttpServletRequest request =((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
Or
server = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("Server");
Best regards,
Fereidoon
Helo Fereidoon
here is another way to set parameters to URL and get the parameter value.
to set parameters:
String deployableObject = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
WDDeployableObjectPart dpObj = WDDeployableObject.getDeployableObjectPart(deployableObject,"deployableObjectPart",WDDeployableObjectPartType.APPLICATION);
Map parameters = new HashMap();
parameters.put("name","Mack");
parameters.put("age","23");
String url = WDURLGenerator.getApplicationURL(dpObj,parameters);
to get parameter value:
String URLParams = WDWebContextAdapter.getWebContextAdapter().getRequestParameter(
"name");
Regards,
Piyush.
note: if u wish to pass values between two applications (IViews) use portal inventing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.