on 12-16-2009 9:35 AM
Hi friends
I have a link with parameters such as:
http://xxx:50000/irj.......?A=Tom&B=Raul
and when the user clicks on the link called the Init webdynpro
but the problem is how do I read the parameters A and B???
Namely, that syntax to use?
Regards
Banana
I have created an iView for webdynpro and the link is in this format:
http://xxx:port/irj/portal?NavigationTarget=ROLES://<PCD Location from role>&A=Tom&B=Raul
the problem is in the Init I put these 2 syntax:
String Param = WDProtocolAdapter.getProtocolAdapter ().getRequestObject ().getParameter ( "A");
String param1 = WDWebContextAdapter.getWebContextAdapter().getRequestParameter ( "A");
wdThis.wdGetAPI ().getComponent ().getMessageManager ().reportSuccess (Param);
wdThis.wdGetAPI ().getComponent ().getMessageManager ().reportSuccess (param1);
and I'm not seeing anything ....
Why???
Banana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a link like this:
http://xxx:port/irj/portal?NavigationTarget=ROLES://<PCD Location from role>&A=Tom&B=Raul
When I click the iView calls me that within the application's WD.
and inside the application WD Init course there are the following syntax:
String Param = WDProtocolAdapter.getProtocolAdapter ().getRequestObject ().getParameter ( "A");
String param1 = WDWebContextAdapter.getWebContextAdapter().getRequestParameter ( "A");
wdThis.wdGetAPI ().getComponent ().getMessageManager ().reportSuccess (Param);
wdThis.wdGetAPI ().getComponent ().getMessageManager ().reportSuccess (param1);
the link works ... but the problem is that it shows the parameters of the URL of course the values of A and B
Something wrong???
Regards
Banana
Hi Banana,
The one sent by Michael is right.
Use can also use:
String para = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("Param");
Similarly, use can get Parameter Names, Maps and Values under getRequestObject.
Regards,
Tushar Sinha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Try this:
String param1 = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("A");
String param2 = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("B");
Regards,
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.