Stoc |
---|
The basic user interface object in Servoy is a form. Forms are also a unit of scope in Servoy, meaning that forms can have variables and methods attributed to them. For more information about scope, see Implementing Business Logic .
To create a form:
Any of these actions will open the New Form Wizard that will walk you through creating a form.
Anchor | ||||
---|---|---|---|---|
|
To walk through the options available in the New Form Wizard, these instructions will use the example_data connection and the customers table.
Notice that the name of the table will appear in the name field. You may edit this name; keep in mind that no two forms can have the same name in the solution. For our example, name this form customers_dtl.
Tip | ||
---|---|---|
| ||
Naming conventions can help you keep track of forms and tell what the form purpose is just by its name. |
There are options on how the data providers will be added to the form. For the most part, for a regular record view form, you only need the Place with Labels option checked. For this example, just select Place with Labels
Note | ||
---|---|---|
| ||
Forms normally are created in record view, but if you select Fill text property and Place horizontal, the form will be set in table view. |
To edit a pre-existing form in Form Designer:
...
Note | ||
---|---|---|
| ||
Right clicking in either editor view will display a menu that has the option to open the form in the other editor view. Example: if you have a form open in Form Designer, you can right click and select Open in Script Editor. |
Saving a form is the same as saving any other editor view in Servoy Developer, see Intro to Servoy Developer
Suvideo | ||||
---|---|---|---|---|
|