Scripts are the essential element that allow an application to perform useful work. In Dexterity-based applications, scripts perform three basic functions:
While these are the basic functions a script can have, any particular script may perform one or more of them.
In almost all cases, applications written with Dexterity perform some type of calculations based on data supplied by the user or previously stored in tables. Performing Calculations describes special situations you should be aware of when performing calculations in your application.
Another common task for scripts is controlling the user interface. Some scripts may perform actions as simple as opening or closing windows. Many scripts are required if your application uses powerful user interface elements, such as a tree view or list view. Working with Controls, provided detailed information about how to use scripts with these types of controls.
The majority of the code in most Dexterity-based applications is needed to work with tables. The ability to successfully work with data in tables is the single most important skill you need to create good applications with Dexterity. Working with Tables, provided detailed information about how to work with tables in Dexterity-based applications.