cancel
Showing results for 
Search instead for 
Did you mean: 

How to send data to another application

Former Member
0 Kudos

Hello all,

I created one application in Webdynpro. Now i want to access this application in another application. I am calling this using the IFrame. ( i am giving the URL of the first in this). I am getting this.

But the problem is , i want to send some data from the calling application to Called application. How can i achieve this?

thanku

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

in case you want to do by application URL parameter, you should define exit plug in the interface view controller of the calling component. and in the called application; add a parameter /"hugo" in this code/ associated to default inbound plug in the interface view controller.

you can implemet this code:

String callingApplication = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();

Map urlParameter = new HashMap();/// creat hashmap to put the parameter

urlParameter.put("hugo"/* this is the parameter to be received in the called application.*/, "value/ value to be passed for the parameter hugo/");

try

{

WDDeployableObjectPart targetDeployPart = WDDeployableObject.getDeployableObjectPart(callingApplication,"name of called application",WDDeployableObjectPartType.APPLICATION);

String urlToRagetApplication = WDURLGenerator.getApplicationURL(targetDeployPart,urlParameter);

wdThis.wdGet<interfaceview of calling application>().wdFirePlug<exit plug name>(urlToRagetApplication);

}

catch(WDURLException e)

{

}

catch(WDDeploymentException e)

{

}

you can also refer the tutorial number 15 in the sdn.

Regards,

Kushagra

Former Member
0 Kudos

Hi Kushagra,

i had tried that and working fine...but, my problem is the parameter that i am passing are displaying in the browser address bar... i dont want that...

how to pass the arguments with out displaying there....

can u plz.....

Former Member
0 Kudos

Hi,

About this; i am unable to suggest you and also i can't try any thing right now because of some technical issues here.

Still, please read the last 5 pages of Tutorial 15; that is about "External Context Mapping". You can map the node/attribute from <i>one view</i>( in caller application) to <i>another view </i>( in the application being called) using context mapping through <i>Component Interface Controller</i>. This way you will get the parameter from one application to the another application without showing the same in URl address bar.I hope That should help you in hiding the parameters.

Regards,

Kushagra.

Former Member
0 Kudos

sorry, you should reffer the Tutorial 14 <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20server-side%20eventing%20in%20web%20dynpro%20components.pdf">Using Server-Side Eventing in web dynpro components</a>.

Try if it can help you.

Regards,

Kushagra.

Former Member
0 Kudos

Sunil,

1. If your applications deployed within portal, use portal eventing.

2. In any case you may pass data via application URL parameters.

3. [Not here, at least not in current preview of NW04s for Java] -- use parameters of suspend / resume plugs. Search for post by Bertram Ganz in this forum.

Search this forum for both solutions, there are also 2 corresponding tutorials on SDN in SAP NetWeaver / Application Server / WebDynpro section.

Btw, avoid using IFrame, it has very serious limitations. Moreover, this control marked as deprecated in NW04s.

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com