Skip to Content
avatar image
Former Member

Public functions in the interface controller

Hi all,

My project includes 3 components. Each component has its own Iview and public functions.

The application will run a main component that uses those 3 components.

What is the right way to call the public functions?

Should I announce them in the interface controller?

Or should I use plugging for doing it?

If I announce them in the interface controller, how I am calling them from the main component?

Thanks,

Noy

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Nov 29, 2005 at 09:36 AM

    hi,

    In the interface controller of component B create a method. inside that method call the public function which you created. Now add component B in the used components of component A. go to properties tab of comonent A and add both the component usage of B as well the interface controller of B. no inside the implementation of component controller of A you can access the method like

    wdThis.wdGet<component B usagename>Interface().<methodnmae>();

    regards,

    rahul.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2005 at 07:26 AM

    Hi,

    You can put it in interface contoller and you can call that by

    wdThis.wdget<Controller>().<methodName>();

    Regards, Anilkumar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Noy,

      First of all, create one method in compB's component interface controller. From this method call your compB's method using:

      wdthis.wdget<component name>().<method name>();

      Now, open your compA. Choose Used webdynpro components and add compB here.

      Now, from your compA call your compB's interface controller method. In turn it will call your compB's method.

      Regards,

      Bhavik

  • avatar image
    Former Member
    Nov 29, 2005 at 07:58 AM

    Hi noy,

    u can declare ur Public functions inside the Interface controller globally.For declaring it gllobally u can give ur functions inside the:

    //@@begin others

    Functions

    //@@end

    Regards,

    Nagarajan.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2005 at 08:56 AM

    You have to add the components to the main component by used Webdynpro components.

    Add the required controllers where you want to use this (either in the view or main component controller)

    Use

    wdThis.wdGet(compA=the name u have to give while adding the used components to the main component)Interface().pubMethod()

    AD

    Add comment
    10|10000 characters needed characters exceeded