This chapter provides an overview of the anatomy of a Servoy solution.
Solution
In Servoy an application is called a Solution and as such is a container for business logic and UI.
UI
A UI in Servoy is called a Form.
Business logic
The business logic, made up of variables and methods, is is organized in scopes. A solution has three distinct scope levels:
Application scope:
A solution has one application scope (also referred to as Top Level scope). This scope contains all the predefined scripting libraries that come with Servoy and also contains a customizable scope called "globals" in which custom business logic can be placed that should be accessible through the solution
Datasource scope:
Below the application scope come the datasource scopes. In general each table (or view) in a database to which the solution has access is considered a datasource. In the datasource scope extensions to the datasource can be defined, in the form of table events and calculations
Form scope:
Each form has it's own scope for business logic. If a Form is tied to a datasource, the Form scope extends from the datasource scope
Form
In Servoy a UI is called a Form. Forms consist of Form parts and the parts contain elements, like labels, buttons and fields.
Forms can have three different layouts:
Record View:
List View:
Table View:
Abstract forms
Inheritance
Element
Media
Scripting API
application:
solutionModel:
The SolutionModel class exposes all scripting API related to the on-the-fly generation and modification at runtime of the
databaseManager:
utils:
history:
security:
i18n:
servoyException:
jsunit:
plugins: