Skip to Content

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

problem with WebDynpro_InterAppNav

hi everyone,

i had successfuly done the example WebDynpro_InterAppNav

and it is working fine with urlparameters passed by me.. and it is displaying in the target application.....

but, when i try to print the passed url parameters in the init() method of target application view....it is not displaying...the data...

can anybody help me out in this....

regards

-


sunil

replied

Hi Sunil,

From your code I am guessing that the parameter name is "hugo" and your URL to targetApp will be something like

http://<server>:<port>/webdynpro/dispatcher/sap.com/local/targetApp?hugo=1234

If that's the case, then try the following piece of code:

String urlParams = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("hugo");

You will need this import:

<i>import com.sap.tc.webdynpro.services.sal.adapter.api.WDWebContextAdapter;</i>

Also, why do you need to do it specifically in the init method? If in your doModifyView(), you have a condition like <i>if(firstTime)</i>, it should serve your purpose.

Unless, ofcourse, you need to use these values again in the init method itself.

Regards,

Satyajit.

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