cancel
Showing results for 
Search instead for 
Did you mean: 

How to access a method (code wise) from one WD DC to another WD DC ?

praveenkumar_kadi
Active Contributor
0 Kudos

Hi ,

I am not finding right way of accessing code to make use of method available in DC1 from DC2.

Both are webdynpro DC's.

I have created public part for DC1 and added this to DC2 as used comp.

Also I have declared a method in DC1 interface controller same as impl method in DC1 comp controller.

When I try to access from DC2-someView, I am not getting what to write there. Please help with code to aceess from DC2 to DC1-Method.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Praveen,

What i got from your question is you want to use the method available in some other DC in your DC. For this case three steps are required

1. The DC which is containing the method definition should expose the Method from interface controller and further exposing as public part.

2. The DC which is containing the method definition should be added as dependency to the DC in which you want to access/call the method.

Above two steps are explained in the thread link provided by Shreyas how ever still i think some part is missing which you should always consider when ever you want to do a inter application/DC communication which is 3rd step as follows.

3. if you want to use the method in component controller the reference of the used component should be added in to the reference of component controller which is some time done by default when you define used component. In case you want to use the method or context available in the other DC in VIew you need to define the reference of used component and interface in the reference of view which will not be done by default and very necessary.

Please check if the reference of the used component are available in proper place.

PS: This question doesn't belong to this forum more appropriate forum will be [Forum: Web Dynpro Java |;

Regards

Jeetendra

shreyas_pandya
Contributor
0 Kudos

Hi Praveen,

Please go through the below mentioned threads threads, it will definitely help you.

Regards,

Shreyas Pandya