cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

Hi,

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

Help will be awarded.

Regards,

Gurprit Bhatia

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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