cancel
Showing results for 
Search instead for 
Did you mean: 

Passing a parameter to Web Dynpro from an external system

former_member192766
Participant
0 Kudos

Hi All,

I want to pass a parameter to a Web Dynpro Application from an external browser.

I have developed a simple application with an input "ServiceOrder".

In the Portal I have created an Iview for the Web Dynpro application and have set an Application Parameter (ServiceOrder="000003000012"). Just for testing.

In web Dynpro Controller I have created an attribute in the Context and write tje code below in the wdDoInit.

String SO = WDProtcolAdapter.getProtoclAdapter().getRequestParameter("ServiceOrder");

wdContext.currentContextElement.setServiceOrder(SO);

My problem is that the String SO is empty.

Please help.

Regards,

Ridouan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi R. Taibi,

try this.



IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
wdContext.currentContextElement().setServiceOrder(request.getParameter("ServiceOrder"));

regards

Gunter

former_member192766
Participant
0 Kudos

Thanks Gunter.

My code is working only the Application parameters should be set without the quotes "" in the iView properties.

Answers (0)