cancel
Showing results for 
Search instead for 
Did you mean: 

How to read parameters from the portal URL.

vikas_saxena3
Participant
0 Kudos

Hi,

I have URL like..

http://server:port/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fdev!2fcom.test!2fcom.test.i...

where I'm passing two parameters <b>guid </b>and <b>region</b>..

I want to access values of these parameters in my WD appln. Can anybody suggest me how can I do this?

I have tried <b>WDWebContextAdapter.getWebContextAdapter().getRequestParameter("guid") </b>

and

<b>WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("guid") </b>

but these are resposible to access <b>Application Parameters</b> of iView.. not the URL parameters.

Thanks,

Vikas

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182374
Active Contributor
0 Kudos

Hi Vikas Saxena,

Try to use DynamicParameter. Example:

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

Regards,

Omri

vikas_saxena3
Participant
0 Kudos

Hi Omri,

This is really very helpful answer..Thanks a lot for it!!!!

One thing I need to be cleared here... while accessing these parameters. I'm getting first param <b>guid </b>value as I passed but second param <b>region </b>is coming as null even I'm passing <b>region=true</b> here.

U know the reason for it??

Thanks,

Vikas

former_member182374
Active Contributor
0 Kudos

Hi Vikas Saxena,

First of all try to replace between the two parameters to see if the problem occurs from the 2nd parameter.

Second, try to encode & as %26 and = as %3D

Regards,

Omri

Former Member
0 Kudos

Hi,

I have a similar issue. Can u tell me how exactly you have solved it?

Thanks,

Prasanna.