Skip to Content
author's profile photo
Former Member

Custom Controller

Hi,

I would like to use methods from a customer controller in another Web Dynpro component.

Example: In my Web Dynpro project I have two Web Dynpro components. My custom controller exist in component A. How can I access this custom controller from component B?

Thanks, Alex

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Aug 19, 2004 at 01:55 PM

    Hi Alexander,

    as far as i know there is no way to directly access Custom Controllers from other WD Components.

    You always have to make use of your interface controllers to communicate with other components.

    so in your case, you could make the Interface Ctrl of Component B able to send an event to Component A.

    In the Eventhandler of Component A you do the call of the needed Custum Controller.

    If you want to return results to the calling Component, you have to do the same way in return.

    Hope that helps,

    Norbert

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Aug 19, 2004 at 03:27 PM

    Hi Alexander,

    in addition to that what Norbert said correctly, you can also declare identical methods in the interface controller of B and the custom controller you want to access.

    The interface controller delegates the work to the custom controller by calling the corresponding methods.

    You can copy and paste the method declarations to speedup the design process.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded