cancel
Showing results for 
Search instead for 
Did you mean: 

passing parameter values from one webdynpro application to another webdynpr

Former Member
0 Kudos

Hi,

I have a requirement where i have to pass the value from 1st webdynpro application to 2nd application and i need to display the data in 2nd application based on the value in 1st application.

So can anyone please tell how to pass and read the parameter values from one webdynpro application to another webdynpro application.

Thank You,

Madhavi.T

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

i dont think we can establish the communication btw two application in WDJ;

Thanks,

Sreeni.

former_member192152
Active Participant
0 Kudos

Hi, I hope this help u.

If your application is not standalone (hosted on the portal), you need to call the iview this app passing the necessary parameters.

[Thread: URL Iview URL parameters to be passed from Webdynpro Application|]

Otherwise, simply call the url of the app concatenating the parameters at the end:

http://yourportal.com:00000/.../MyApp?p1=XYZ;p2=ABC

[Sending URL Parameters to Applications|http://help.sap.com/saphelp_nw2004s/helpdata/en/44/be65751c743959e10000000a1553f6/content.htm]

To read these parameters in another application, use the following code:


String urlParamVal = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("URL_PARAMETER");

For encode Url look this: [Web Dynpro URL-Invocation with umlauts (like %FC) in the url |]

More info:

[Thread: How to pass and fetch multiple parameter in the URL of the Web Dynpro|;

[Thread: Reading URL Parameter|;

Regards,

Angelo

p.s.: The next time you can try using the "search" field of the forum before posting something so basic.

Former Member
0 Kudos

Hi,

If you want to pass parameters when they share the same session you can use this.

WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Parameter","Value);

WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"Parameter");

http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/session/api/WDScopeUtil....

If you are passing parameters through url use this.

WDProtocolAdapter.getRequestObject().getParameter("Parameter");

Best Wishes

Idhaya R

Former Member
0 Kudos

Hi Madhavi,

Pls go thr below link it will help you about external context mapping

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/800b7206-9c6d-2910-f78e-ce4034716...

Thanks,

Sreeni.

Former Member
0 Kudos

Hi SreeniChinta,

I am not using DC's in my application. i have 2 different projects.i need to pass parameter value from one webdynpro project to the other webdynpro project.

Former Member
0 Kudos

Hi

You have to have project within a DC if you want to use that particaular project in some other project (DC).

You have to include your project within a DC to fulfill your requirement.