on 07-29-2009 12:31 PM
Dear Experts
I have created a webdynpro ivew, and added a Quick link to it and added to the workset. So that I can acccess the ivews form URL. I need to pass the URL paramenter also
like
http://<Server Name>:<portNumber>/irj/portal/Quick link?param1=Value, Now I need to read the param1 value in my Webdynpro code.
When i set the value in Application parameter I was able to get the value using the following code
path=WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("path");
My Question in how to get the value which is given in URL parameter
Regards
Noel
Dear Expert
Finally I got the result by setting
DynamicParameter=param=value
in the Query String to sending the paramenter
and in receiver end I tried
WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("paramr");
Regards
Noel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use this one,
WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("param1");
Regards,
sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Noel,
use the following code in your wddoinit() method.
if ((WDProtocolAdapter.getProtocolAdapter().getRequestObject()
.getParameter("param")
!= null)
&& (!WDProtocolAdapter
.getProtocolAdapter()
.getRequestObject()
.getParameter("param")
.equalsIgnoreCase(""))) {
String str = WDProtocolAdapter
.getProtocolAdapter()
.getRequestObject()
.getParameter("param") ;
}
Regards,
sarbjeet singh
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 use the following :
if the url is : http://<Server Name>:<portNumber>/irj/portal/Quick link?param1=Value,
String param =WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("param1");
Thanks
Ritushree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I think the code that you mentioned should works. I observe one thing that in getParameter you mentioned path as an argument. You need to mention the application parameter name.
Also, if you run the webdynpro application standalone you will not get its iView application parameter. You should only run the iView in portal or in preview mode to get the desired value.
Following code can help you in listing down all the application parameters that a webdynpro iview can contain. If you mentioned your parameter it will display the same too:
Enumeration enum =
WDProtocolAdapter
.getProtocolAdapter()
.getRequestObject()
.getParameterNames();
for (Enumeration e = enum; e.hasMoreElements();) {
wdComponentAPI.getMessageManager().reportSuccess(
"iView Params::" + e.nextElement());
}
Coming back to your problem, suppose you have application parameter set as ivuParam then you can get its value as
String ivuParam =
WDProtocolAdapter
.getProtocolAdapter()
.getRequestObject()
.getParameter(
"ivuParam");
Hope this helps.
Abhinav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.