cancel
Showing results for 
Search instead for 
Did you mean: 

Combining two or more component

Former Member
0 Kudos

Hi,

I want to combine two or more component in one Web dynpro application . How it can be possible.

Can any one tell the step by step procedure to do this Plz..

regards,

H.V.Swathi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi..

suppose you have two component within your application as APP.

first comonent likeparentComp....second component like-childComp.

if you want to add chindcomponent into parent component...

firstlt you have to add child component into parentcomponent.

In parent -.go to addComponentrightclick---you will get one prompt having three field..

1st filed you have to any name..2 nd fild you chhose browse button and chhose child component

then you add child component into parent commponent.

then go to window option where you create INbound and out bound..

firstly create emptywindow....then create view---you will get 4 option..you will choose last one like interfacecomponent...then choose chilld component...expand it upto last..if not then add your child component....and chose child view(last) ..now your child view created through interface controller.

in window..you just drag line friom parent view to chile view just while you craeated throw your interface controller

then build it and run in sap j2ee server...

.in parent create one button and give the action ...wdthis.wdgetfire...which is created at time of create outbound name.....

the run it...

if any issues call me 09903682912

thanks

sudhira jati

Former Member
0 Kudos

Hi,

Thanks for your answer. I am able to do what i wanted, except coming back from child component to parent.

Can please help me to do that.

Regards,

H.V.Swathi

Former Member
0 Kudos

Hi,

Your requirement is to navigate from child to parent right?

1.So in the Interface view of the child create an Outplug "" ToParentOut".

2.Create an Inplug "fromChildn" in Parent.

3.Create the navigation link.

Now create a button in child and in the onAction of this button write this code.

wdThis.wdGetChildInterfaceViewController().wdFirePlugToParentOut;

Please refer to link which i have posted before..

Hope it is clear.

Jithin

Edited by: jithin james on Mar 12, 2009 9:52 AM

Edited by: jithin james on Mar 12, 2009 9:54 AM

Former Member
0 Kudos

But when i right click on view create outbound plug option is disabled.

What is the procedure to do it enable.

Regards,

H.V.Swathi

Former Member
0 Kudos

Hi swathi,

Create it in the Interface View of the child component.

Jithin

Former Member
0 Kudos

I am very sorry to tell u that,I am not clear with the answer.

Regards,

H.V.Swathi

Former Member
0 Kudos

Hi,

Your child component will be having an Interface View right.

Just double click on this.

U can see 3 tabs.. Properties, Plugs, View containers.

Now in the Plugs tab go and create an Outplug.

Now follow the steps mentined before.Please get back if it is not clear yet..

Jithin

Former Member
0 Kudos

I tried to double click on the Child component interface view in parent view window But that is not opening.

If i right click on that and give edit window it is going to child window.

Regards,

H.V.Swathi

Former Member
0 Kudos

Which Version are you using..?

In your child DC, Just below your Child Dc controller can you see Component Interface..???

Expand it and there you can see your Interface View of your child DC.

Jithin.

Former Member
0 Kudos

I am using Version: 7.0.09

I am taking components of Web dynpro projects.

Or do we need to create Development components and combine together.

Former Member
0 Kudos

You can do it both the ways.

If you are using Dc of two diffrent projects then you need to add your Child Dc to the public part and add it in your Parent Dc.

Now if you have both the components in a single project, if you want to navigate between the componets you can follow the steps above. Please see the link which i have posted before.Please tell me where the confusion really is. It is pretty simple.. :)...

Jithin

Former Member
0 Kudos

My question is i have created two projects(Web dynpro projects).

I want to combine both the components of two application. I have copied and pasted the child component in parent and Added in Used web dynpro component too.

While doing this childComponentinterfaceview is created in parent window and default inbound but no outbound. But i am not able to create outbound also.

What shall i do to go back from Child Component to Parent.

Regards,

H.V.Swathi

Edited by: H.V Swathi on Mar 12, 2009 11:05 AM

Former Member
0 Kudos

Hi,

i am not familiar with Version: 7.0.09.

I am telling you what we does in 7.1

Please try this...

In your child DC go to component Interface.(just below your child DC controller)

Please reply if you can see your child DC Interface View here.

Edited by: jithin james on Mar 12, 2009 11:12 AM

Former Member
0 Kudos

Hi,

Thanks a lot. My query is solved now. Thanks a lot again.

Regards,

H.V.Swathi

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In your appllication u can add the interfaceView of only one component.

So what we usuually do is keep one component as parent and in the application we include

the Interface View of this component. We can add the other components as used components to this parent component. Please refer this thread....

Link:[]

Jithin

Edited by: jithin james on Mar 12, 2009 9:43 AM

Former Member
0 Kudos

Hi Swati,

Go to Web Dynpro explorer -


> select used Web Dynpro Component -


> right click -


> add used component.

Then you will be able to use 2 or more components in a component.

Regards,

Abhijeet.