cancel
Showing results for 
Search instead for 
Did you mean: 

Read URL parameter of my webDynpro application ?

Former Member
0 Kudos
309

Hi,

How to read the URL parameter of my webDynpro application from within the webDynpro Application code ??

Example : My application URL is : "http://ldai99wdd:50000/webdynpro/dispatcher/local/target/TargetApp?SAPtestId=38

&sap-wd-resumeurl=http%3A%2F%2Fldai99wdd%3A50000%2Fwebdynpro%2Fdispatcher%2Flocal%2Fplugs%2FTest%3Fsap-wd-cltwndid%3D1c175200265c11ddc21900300571b288%26sap-wd-appwndid%3D1c175201265c11ddaa3a00300571b288%26sap-wd-resume%3Dtrue"

I want to read the Parameter sap-wd-resumeurl.

Regards,

Mahesh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

These api's did not work, but I was able to directly read the attributes via the window context. - by creating a context attribute resumeUrl of type String.

Thanks.

Regards,

Mahesh

Former Member
0 Kudos

Hi Mahesh,

Can you please let me know how were you able to read this ? Where did you define resumeUrl ?

Vinit

Former Member
0 Kudos

Try this ...

data lv_param type string.

lv_param = wdr_task=>client_window->get_parameter( 'your_parameter_name' ).

Edited by: Paul Maguire on Jun 9, 2010 11:39 PM

Former Member
0 Kudos

I need it webdynpro java.

Former Member
0 Kudos

Hi,

Try with the following code


String url = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("sap-wd-resumeurl");
	  String url = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("sap-wd-resume");

Regards,

Ayyapparaj

Former Member
0 Kudos

Hi,

You can use the following code to get parameters from an URL

IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();

IWDRequest request = protocolAdapter.getRequestObject();

String paramValue1 = request.getParameter("<URL Parameter name>");

http://help.sap.com/saphelp_nw2004s/helpdata/en/44/be65751c743959e10000000a1553f6/content.htm

Thanks n Regards,

Jhansi Miryala