on 11-05-2007 4:14 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.