cancel
Showing results for 
Search instead for 
Did you mean: 

componentization question

Former Member
0 Kudos

Hi

I am tryingout componentizationand i have to ask a few concepts

I have 3 comonents in the web dynpro project - Main , C1 and C2.

The main comp uses c1 and c2- both create on demand

The navigation flow is that the main will first call c1 and after c1 is processed it should call c2

Main has 2 fire plugs outc1 and outc2

c1 has an inplug inc1 and c2 has inplug inc2.

My question is - when i call c1 from main . after c1 is processed how will control go back to main .Will i have to call main from c1 explicitlity or will it be automatically done.

Alos after main calls c1 and control comes back to main - where will the contol come back - will it come to the line after i called c1 or to init.In this case , how will Main know that it has done its work with c1 and now it has to call c2 .Do i have to save somethhing in the content of Main?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shobendra,

When Main calls the C1, after completion of processing at C1 we have to navigate it Main again.

It will not come automatically,( you need to fire it back to Main).

When it comes to Main it will not go to previous position because, in general we have many views in a component, when we use View set concept we make one View as defualt to display first.

So it will go to that perticular view only.

Regards

Bala

Answers (3)

Answers (3)

BeGanz
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi shobhendra,

look at my <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/751d003a-0b01-0010-8996-afbaa3fd5339">cross-component Navigation Tutorial</a>, it addresses a similar issue.

Regards, Bertram

Former Member
0 Kudos

shobhendra,

One option is to declare event on C1 interface controller, then subscribe to this event in view of Main and navigate from this event handler. Sure, you have to fire this event somewhere in C1.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hai,

if you need navigate to Main from C1 , you need to create oubound plug in C1 , inboundplug in main, connect it.

You need fire C1 outbound plug to navigate to Main. when you fire C1 outbound plug it will execeute the inbound plug in C1. there itself you can code your self.

Regards,

Naga