cancel
Showing results for 
Search instead for 
Did you mean: 

How to initiate a Webdynpro application by sending some parameters to it?

Former Member
0 Kudos

Hi,

I have a requirement where, in my WebDynpro application I have two iViews. And these are to be provided as two seperate action links to user in the Portal browser,

leading to the possibility of user dynamically choosing any one of the shown two iViews.

My need is to initiate the WebDynpro application such that it shows the selected iView as the default one. For this I need to first send some parameter to the WebDynpro specifying the iView to be shown.

How can I do this.....?

Thanks in Advance,

Warm Regards,

Swapna Priya.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Swapna,

Not sure if I can help you. From what I understand, I'll offer you a solution. As you are triggering the WD views through action links, you can pass a parmeter through your Url.

For the first view let your Url look like :-

http://....../<project_name>/<application name>?param=first

and the url for your second view be

http://....../<project_name>/<application name>?param=second

Now let First view be your default view. Create a plug from this view to the second view.

In the wdDoInit() of the first view read the url parameter like :

WDWebContextAdapter.getWebContextAdapter().getRequestParameter("param");

if the value received is "second" fire the plug to the second view.

Hope this helps,

Best Regards,

Nibu.

Former Member
0 Kudos

Hi Swapna Priya,

Do go through these links ::

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on inter-application-navigation - 15.htm

/people/jochen.guertler/blog/2004/11/23/web-dynpro-best-practices-how-to-navigate-between-different-web-dynpro-applications

U can very well do it using exit plugs but you will not be able to navigate back to your parent View or application i think.

There is one more way. U can go for EPCF eventing.

You will have one WebDynpro project where you will create different applications and components and then do this EPCF eventing so that you have the back navigation also.

Go through this urls they may be helpful::

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/po... integration of web dynpro applications.pdf

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on integrating web dynpro in portal - 19.htm

All the very best,

Regards,

Sirisha.R.S.

former_member182372
Active Contributor
0 Kudos

Hello Swapna Priya Neemkar,

You can pass parameters to dynpro application using inbound plugs parameters of interface view.

Best regards, Maksim Rashchynski.