cancel
Showing results for 
Search instead for 
Did you mean: 

calling a view from a component interface view

lajitha_menon
Contributor
0 Kudos

Hi, I have 2 components C1 and C2. C1 should access the view V2 of C2. To get this access, I suppose I have to use the component interface view in C2. But How do I call the view V2 from the component interface view of C2?

Any help is appreciated.

Many Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi,

What do you mean "access". Call navigation plug or embed to somwhere?

Interface view is assosiated not with view but with window, whihc can contain multiple views one of them must be default. This view appears on the users screen when we call application or navigation.

Best regards, Maksim Rashchynski.

lajitha_menon
Contributor
0 Kudos

Hi Maksim,

Thanks for the quick reply and info. Can I ask you in bit more detail. The component C2 has got views V1 v2 v3 and v4, navigation of all of which are currently in one window w1. So, In my component C1, I need to embed the view interface of C2, so that I can reuse the views. So, When the view interface of C2 gets triggered, I basically need it to display V1 and take it from there as is defined in W2.

Hope you got what I meant.

Will appreciate quick reply.

Thanks a million!

PS: Also, can I just ask how to associate a interface view with a window? Thanks

Message was edited by: l m

former_member182372
Active Contributor
0 Kudos

Hi,

In C2 create window w22 and embed v1 to it and make it default. In C1 add C2 as used component and afterwards you will be able to embed interface view of w22 to view or use for navigation.

Interface view and window are having 1..1 relations, so, they can not be reassigned.

Best regards, Maksim Rashchynski.

lajitha_menon
Contributor
0 Kudos

Thanks a lot for that answer!

Answers (1)

Answers (1)

BeGanz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hallo,

I developed a sample application and wrote a corresponding article which exactly deals with this issue: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/751d003a-0b01-0010-8996-afbaa3fd5339">cross-component Navigation, Explained - How to Navigate Inside Web Dynpro Component Interface Views</a>

Regards, Bertram