Calling/Accessing a function in one module from another
Posted: Fri Jan 29, 2010 9:07 pm
I am trying to use one module (navigation framework ) to fire a method on a form in another module. I can't seem to find a way to expose or pass the form method I would like to call to this module though.
This is what I've tried:
1. Establish a global module variable in module 1 and a global method in module 1 to set the variable to point at a method in module 2. When a button is pressed in a form within module 1, the onAction form method in module 1 calls the form method (preferred) in module 2 using the global variable.
I've looked at the solution model and the currentController functions and have tried a number of combinations that seem to make sense to pass the required information but to no avail.
Any insight or ideas would be greatly appreciated.
This is what I've tried:
1. Establish a global module variable in module 1 and a global method in module 1 to set the variable to point at a method in module 2. When a button is pressed in a form within module 1, the onAction form method in module 1 calls the form method (preferred) in module 2 using the global variable.
I've looked at the solution model and the currentController functions and have tried a number of combinations that seem to make sense to pass the required information but to no avail.
Any insight or ideas would be greatly appreciated.