cancel
Showing results for 
Search instead for 
Did you mean: 

Sending an event from an external window

Former Member
0 Kudos

Hello everybody,

Does anybody knows how to send an event from an <b>external window </b> back to the iView that opened it?

thanks, Adi.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

there are no offically supported ways to use the portal eventing between different windows. So you have to find another way? Why do you need an external window? Why not using a WD popup?

Best regards

Jochen

Former Member
0 Kudos

Hi Adi,

If the external window is used for searching,

and the data that should be put back in the opener is the result selected,

this might help:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/web dynpro valuehelp using object value selector.pdf

Hope it does,

Yoav.

Former Member
0 Kudos

Thank you all for your answers,

To open the external window I'm using the next method:

WDComponentAPI.getWindowManager.createExternalWindow(...);

When using another method:

WDComponentAPI.getWindowManager.createWindow(...);

your suggestions to use context mapping or events works.

But for an EXTERNAL window it doesn't,

doe's anyone knows a solution?

Former Member
0 Kudos

Adi,

2 browser windows have 2 separate instances of WD applications running. And there is no other way to exchange parameters between them except startup URL parameters (what is not acceptable for, if I understand your requirements correctly, -- application will be restarted in this case).

If your applications run within portal, you may try portal eventing (not sure how it works between 2 browser windows).

VS

arun_srinivasan
Contributor
0 Kudos
vijayakhanna_raman
Active Contributor
0 Kudos

Hi

If your external window is a popup window and you want to pass an event from that window, it is possible through the component controller. Create a method and an event in the component controller. Call the method of the component controller from the method(onactionclick) in the external window. The method in the component controlller will fire the event of the external window to the event handler of your main window. The corresponding event will be handled by the event handler of the main window.Hope this helps..

Regards

Vijayakhanna Raman

arun_srinivasan
Contributor
0 Kudos

hi adi,

try this,create a action and event handler method in

component controller(cc).Call the method of the component controller from the method(onactionclick) in the external window and pass the parameter.

<b>wdThis.wdGetcomponentController).eventmethodinccparameter);

</b>

Create a event handler method in main view and set the event source and subscribed event(cc method name) in

method tab.

Fire this method from cc

<b>wdThis.wdFireEventnameinmainview(parameter);</b>

And finally handle the parameter in a definedmethod of the view(that called external window )

u can also use contextmapping between component controller and bothview ( external window view and main view)

regards,

arun

Former Member
0 Kudos

Hi Adi,

How do you open the external window?

May you should open it as a popup. If you wish to try this way you have a complete example in PDK:

Java developer -> User Interface development -> web dynpro -> overview and Tutorials -> Dialog Boxes in Web Dynpro Applications

Good luck,

Yoel