cancel
Showing results for 
Search instead for 
Did you mean: 

How to talk between Customand Conponent controller

Former Member
0 Kudos

Hi,

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

Help will be awarded.

Regards,

Gurprit Bhatia

Message was edited by:

GURPRIT BHATIA

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gurprit,

If you need to exchange data between 2 controllers, you need to specify a context mapping between the contexts of the 2 controllers in use. You can do so by creating a Data link between them by using The Data Modeler.

In addition, if you want to call certain methods which are defined in another controller, you can do so by specifying the "Called" controller as a Required controller in the "Calling" controller.

For e.g If i have to communicate between the Component controller and the Custom controller and in the custom controller i have a method getDetails() defined, i can access this method in the Component controller as follows:

In the Component controller Properties Tab, add the Custom controller as a Required Controller.

In the Component controller implementation, i can then call the getDetails() as follows:

wdThis.wdGetXYZCustomController().getDetails();

Likewise you can also access the context and other properties/functionalites of the Custom controller.

Hope this helps.