How to call an external module
From your BAM-generated application, you can call a function in an external module.
To call an external function, you must add custom code using a code event. With this custom code, you will import the module that defines the function, prior to calling the function.
This topic uses a demonstration to illustrate the steps you must take. For this demonstration, you can use the OfficeStore sample project included in the Genero Studio distribution.
In this demonstration, you will:
- Create a simple function that displays "foo".
- Save the function to a module in a new library node.
- Call the function from the On Open Form code event of a form.
- Run the application to test the execution of the function.
Complete these steps: