on 01-25-2008 11:28 AM
Hello,
I have a situation where in the control navitgates from one DC to another. I need to access the URL at the target, look for a particular parameter and act accordingly.
I am trying to access the current URL or OBN in the target controller's wdDoInit(). Could somebody help me out with the API to access the current URL.
I tried Google it but could not find the right material.
Thanks in Advance,
Harisht
Hi,
Inside the Web Dynpro framework you can access the URL parameters using the following code:
WDWebContextAdapter.getWebContextAdapter().getRequestParameter("<param name>");
Or you can use
WDProtocolAdapter.getProtocolAdapter().getRequestParameter("<param name>");
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply Satyajit and Ayyapparaj.
My URL is something like this.
http://ldciwdm.wdf.sap.corp:50000/irj/portal?
NavigationTarget=OBN%3A%2F%2F
BOTechnicalName%3D541D98274149D65CEF82E1CD43F159A2D5FBCBEF%2F
Operation%3DOpenFactsheet%2F
selectedRecordKey%3D001635C4F0401DECB2C9C2FA7DB15FC4
I am trying to access the parameter Operation using above suggested APIs. It returns as null. I see some special characters in the URL, could this be because of the characters.
Should I decode the url before accessing the parameters.
Please suggest.
Regards
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If your url is like name=aaa
you can use
WDWebContextAdapter.getWebContextAdapter().getRequestParameter("name");
In latest
WDProtocolAdapter.getProtocolAdapter().getRequestParameter("name");
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.