cancel
Showing results for 
Search instead for 
Did you mean: 

How to reuse a component in WEB DYNPRO for Netweaver CE 7.1

Former Member
0 Kudos

I want to reuse a local development component in other development component.

I want to access the views as well as the methods present in first DC. I want to know how can it be done in WEB DYNPRO in Netweaver CE 7.1. Can some give links of articles present on SDN.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

First of all thanks for the links.

I am able access the data present in other DC through context mapping. But how to access the method present in the component controller of the first DC in the Second DC.

Doth the DC are separate Local development projects.

With Regards,

Ardhendu

Former Member
0 Kudos

Hi Ardhendu,

I'm solving the same problem - how to call method of used component. How did you solve this?

Thank for your reply.

Ondrej Lednicky

Former Member
0 Kudos

Hi,

Use as follows

wdThis.wdGet<Your component>().<Method>();

Regards

Ayyapparaj

Former Member
0 Kudos

Hi Ondrej ,

Refer the above links to convert the component of the first dc as a public part.

Then declare the methods which are written in the component controller of the first DC in the interface controller with the same signature.( When method is called automatically component controller method is called)

In second dc in component controller properties tab add the reference of the first dc.

Then access the method in second dc as

wdthis.wdget<UsedComponent name>Interface.methodname();

Thanks & Regards,

Ardhendu

Former Member
0 Kudos

Hi,

this link may help you some extent.

Regards,

ramesh