Skip to Content
avatar image
Former Member

Can any one tell me how to talk between two controller.....

Hi,

Can any one tell me how to talk between two controller.....

Help will be awarded.

Regards,

Gurprit Bhatia

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 05, 2007 at 04:27 AM

    Hello,

    If your talking about different controllers on the same component, you probably have the default component controller, and one or more custom controllers.

    You can call a method directly from a controller to another controller: wdThis.wdGetXXXController.<MethodName>, or raise an event, and have it handled on the other controller.

    regards,

    arnold

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 05, 2007 at 04:49 AM

    Hi Gurpit,

    If you want to share data between 2 controllers then you can simply do that by providing a data link between the controllers in your data modeler.

    If you want to use some methods of one controller in another then you can do it using

    wdThis.wdget<controller name>().<method name>();

    If your question is something different than this then please elaborate your requirement.

    Regards,

    Murtuza

    Add comment
    10|10000 characters needed characters exceeded