cancel
Showing results for 
Search instead for 
Did you mean: 

How to call View of Component B in WINDOW of Component A .

Former Member
0 Kudos

Hi Experts,

I have 4 different webdynpro Component. On the button click of first component view, I want second component view should be open in same exiting WINDOW, and same when button click from view of second component, 3rd component view should be open . I want all 4 component should be opened in ONE WINDOW ONLY .

Now I am using URL of component to open next component but this is opening seperate window.

So please guide me how to open different different webdynpro component in ONE WINDOW.

Thanks & Regards,

Abhiiesh.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

Are the other comp not defined as a usage in the Main component...

But here as per your requirement...you are trying to open one comp from other like nesting....

Main comp->you are calling comp 1 -> from comp1 you are calling comp2...I guess you requriement is like nesting right..

Former Member
0 Kudos

Hi Lekha,

Yes, I wanted the same. Please give me step by step process.

Regards,

Abhiiesh

Former Member
0 Kudos

i guess there is a standard example on this requirement or something relevance to it..need to check teh

name.

Like that how many comps are called one in other....why is there such requriement..

Former Member
0 Kudos

Hi,

If its possible for your scenario then create all four views in same component and do as per the srinivas has suggested.

Else to add Component B into Component A, you need to have usage of Component B into component A's properties of component controller. For this Component B's component controller method should be ticked with interface flag. And same can be done for 3rd into 2nd and 4th view into 3rd using Inbound and Outbound plugs.

Regards,

Vishvesh

Former Member
0 Kudos

Hi,

If its possible for your scenario then create all four views in same component and do as per the srinivas has suggested.

Else to add Component B into Component A, you need to have usage of Component B into component A's properties of component controller. For this Component B's component controller method should be ticked with interface flag. And same can be done for 3rd into 2nd and 4th view into 3rd.

Regards,

Vishvesh

Former Member
0 Kudos

Hi,

Why did you create 4 views in 4 different components when you want to use all of them in a single window?

You could have created all 4 views in a single component.

Answer to your query:

Define the usage of components 2, 3 & 4 in component 1

Add the interface views of components 2, 3 & 4 in window of Comp_1

Create inbound and outbound plugs for the interface views and windows of components 2, 3 & 4 . Use these plugs to create navigation links in Window of comp_1.

Use the outbound plugs of windows to navigate btw views(From view call a method in window controller which will fire the outbound plugs).

Regards,

Ashwin

Former Member
0 Kudos

hi Ashwin,

Thanks for your reply.

I want to use already created four component to display in one window.

can u please give some more details about Use the outbound plugs of windows to navigate btw views(From view call a method in window controller which will fire the outbound plugs)

Thanks & Regards,

Abhiiesh.

former_member199125
Active Contributor
Former Member
0 Kudos

hi Srinivas,

Thanks lot for your reply - navigation between multiple views of one component. But Sir, I am looking to open 4 different existing component in one window.

So please guide me how shall I link 4 different component to open in one window.If possible plz give me step by step procedure.

Thanks & Regards,

Abhiiesh.

former_member199125
Active Contributor
0 Kudos

If possible, try to create all the views in same component then maintain navigation plugs between views. and fire that plug in corresponding view button.

If its critical to include 4 different views, then create 4 views in ur compoent, in each view insert one view containter element and embed the other component view in view container using component usages. and then remaining procedure same as above.

Regards

Srinivas