You can attach scripts to AppStudio apps through PyxL, an extension of the Lua scripting language. This section assumes that you are familiar with Lua syntax and conventions. For detailed information about the Lua programming language, see:
Scripts that are associated with screen views and individual controls can provide customized control over screen and field behavior.
PyxL supports scripting at the following levels within an application:
- Global scripts can be specific to a single app or shared among multiple apps. They define functions and variables that are available to all view and control event scripts in a given application and optionally across multiple apps.
- Event scripts can be used when application or control events are triggered. View event scripts are associated with a view and execute when a view dispatches an event (such as a "save"). Control event scripts are specific to individual controls and are dispatched by the control. For example, a user exits a form field and the form field dispatches a focusOut event.
This section contains the following documents: