The modules are libraries of functions that can be used by the application.
These functions can be compiled both Server and Client side as needed.
if it is run a function that is in the client-side module, the client must first download it locally. Dataweb first checks if the current version is the same of the one is being downloaded. From this moment it is possible to use the functions of the client side module.
It is not allowed to use client side functions that refer to objects inside the server side.
In order to optimize performance, if you need operations on data, it is better to use functions defined in the module server side.
We can have three types of module:
- Client uses module Client side
- Server uses module Server side
- Client uses module Server side
The first case concerns all those modules you want to use directly on the client. To use the module in this way, you have to use the method GetModule of the Global Object Client.
The second case concerns the modules you want to use on the server. To use the module in this way, you have to the method GetModule of the global object (server side) dbSession.
The last case concerns the use of the modules you want to run on the server and you want the result to the client. To facilitate the invocation of a module on the server side by a client, you can use the method invokeServerModule of the Global Object Client.
Last updatedTuesday, 30 November 2010 10:30