Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Pass parameters from JSP Dyn Page to WDJ Application

Hi,

I am trying to pass parameters from my JSPDyn Page to WDJ Application.

I am using NWDS 7.1 EHP1

My code is :

function to_WEBDYNHK()

{

EPCM.relaxDocumentDomain();

EPCM.doNavigate

('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');

}

This method is being called on click of a button.

hkparam is the parameter in question.

The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.

In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.

However I am getting null as the value of hkparam in my WDJ application.

The code used is :

IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();

String param1= request.getParameter("hkparam");

What seems to be missing here.

Please help.

I went through the documentation on SDN but it does not seem to help.

TIA,

Himanshu

Former Member
replied

Hi,

Thinking of it, could you omit the double-quotes at all? So just use the URL-encoded key-value pairs

EPCM.doNavigate

('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter=hkparam%3Dmypass1123');

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question