cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameters to a Webdynpro Java Application

roger_alluivall
Participant
0 Kudos

Hello Experts,

I'm trying to develop a simple java webdynpro application that receives parameters from the URL and sets them into fields in a view. Could anybody tell me how to achieve this? I tried to set paramiters to the application, but then i don't know how to access them.

Thank you in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

roger_alluivall
Participant
0 Kudos

Finally!

What i have done is set the following code in the wdDoInit of the webDynpro component:

String param1 = com.sap.tc.webdynpro.services.sal.adapter.api.WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("PARAMETER1");

to get the parameter PARAMETER1 of the URL:

http://server:port/webdynpro/dispatcher/local/WDTest004/WDTest004App?PARAMETER1=test

And it worked!