cancel
Showing results for 
Search instead for 
Did you mean: 

Not able catch URL parameters in webdynpro application

Former Member
0 Kudos

Hi All,

I am trying to catch url parameters with the following code.

PARAM1 is the parameter name.

	IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
                IWDRequest request = protocolAdapter.getRequestObject();
	String RESPONSIBLE_NO = request.getParameter("PARAM1");
                wdComponentAPI.getMessageManager().reportSuccess(PARAM1);

The above code works fine if I use the following url for calling the WD application

http://<hostname>:50000/webdynpro/dispatcher/local/MyWDApp/MyWDApp?SAPtestId=10&PARAM1=123

I am able to get the passed value as output for PARAM1 as 123 in my output.So far this is good.

But I created a View based on the above WD application an trying to call the iView using Navigation Target.Now I am not able get url parameter value.I used the following url

http://<host name>:50000/irj/portal?NavigationTarget=ROLES://portal_content/POC_View/Roles/My_Folder/My_view

&PARAM1=123

I require to pass the paramters with the above url as I need to call this iView in IFRAME

Regards,

Santhosh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If i could understand your scenario you need to use portal navigation with dynamic parameters

Regards

Ayyapparaj

Former Member
0 Kudos

Thanks Ayyappa for the response.

Actually My webdynpro iView consists of two frames.

Top frame fetches data from one system and bottom frame calls some other iView

Though Portal Navigation is helpful in catching the paramter values,I can not use that.

Becoz I have to retain the top frame and also show the second iView in the bottom frame

If I use Portal navigation,both the frames are replaced by the iView called.

So for this reason I am trying to use NavigationTarget URL. and passing the paramters but I could not do so.

Hope I am clear with question.Please provide your inputs on the same

Regards,

Santhosh

Answers (1)

Answers (1)

sanyev
Active Participant
0 Kudos

Hi Santhosh,

There is an option in the webdynpro iView, called "Parameters to Pass from Page Request" this has to be set to * to allow all parameters to be passed to the webdynpro iview from with in the portal. Make sure you set the Isolation Method to URL.

You can also enable single parameters by writing the name.(case sensitive).

Hope this helps.

Regards,

Sanyev

Former Member
0 Kudos

Hi Sanyev,

Thank you for the help.

I searched in the SDN and got this useful weblog which solved my problem.

/people/martin.kellermann2/blog/2007/11/01/how-to-pass-dynamic-url-parameters-to-web-applications-integrated-via-application-integrator

I thank you all for the support

Regards,

Santhosh