cancel
Showing results for 
Search instead for 
Did you mean: 

Communication Between two Windows of the Same component

Former Member
0 Kudos

Hi Everybody,

Can any body explain me how to communicate/Navigate between two windows of the same component?

Regards,

Xavier.P

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Suman Kumar,

I tried the same application with two views and two windows.I created one button in view1 when i click on the button the view present in the secondview of second window should display but i am unable to call exit plug of window1 in onaction method of view1.Can u please suggest me how to do this for communication of two windows of the same component.

Thanks in Advance.

uday_gubbala2
Active Contributor
0 Kudos

Hello Xavier,

Its not possible to navigate between windows of the same component. Check this fragment from the SAP's standard documentation.

"A window embeds one or more views and has a corresponding window controller. A window controller can contain navigation plugs, methods, and a context. Each view can be embedded in multiple windows.The outbound plug of a window can be connected to any inbound plug of embedded views, and the outbound plug of a view can be connected to any inbound plug of the embedding window. However, navigation between windows of the same component is not possible."

Regards,

Uday

Former Member
0 Kudos

Hi Xavier/Uday,

it is possible i worked on it .You have to do in this way.

1.create 2 views and 2 windows and assign first view to first window and second view to second window.

Also create an exit plug for window1 with parameter URL of type string.

Note:

when you create windows automatically an interface view will also create with same name.

2.Create application1 for window1(nothing but give interface1 ) in the same way create another application and assign interface view2.

Then write your logic in the onAction method of view1,call the exit plug of window1 then pass the URL of second application.

Former Member
0 Kudos

Hi Xavier,

you can do Window navigation by using window inbound/outbound plugs.

Check this below article written by me here i have created two seperate components and i showed how to navigate from one web dynapro appliaction to the other, apply the same way to your component also.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2064719b-8851-2b10-a399-b356d91c...

and also check this document about window plugs

http://help.sap.com/saphelp_nw04s/helpdata/en/b1/6ffc40c5e8ef6fe10000000a1550b0/frameset.htm

raja_narayanan2
Active Participant
0 Kudos

Hi.....

i will tell you one example how to communicate with two windows in same component....

for example..... if you want to display a popup message in a separate window... in that case we can go for separate window.

so window1 -> window2

window2 - > window1..

you can define inbound plugs and outbound plugs and navigate with each other like view....

Hope this will help you...

thanks & regards

Raja