Creating a form#
A form is created with its wizard, inside a segmentation of the workbook. Afterwards you can add detail forms to it and adjust its design: the view, the sort order, the width of each field and the hidden fields.
Before you start#
- You need to be able to modify the workbook. Without that permission, the workbook does not offer New document or Wizard….
- The table has to have a primary key, and you have to see the dimensions you want to put in the form.
- Think about the segmentation: the form will only read the records that meet it. If you want to edit only the open incidents, create the form in a segmentation that selects them (see Segmentations).
Create the form with the wizard#
- Open the workbook in which you want the form.
- In the workbook outline, open the menu of the segmentation and choose New document › Form…. You can also use New document in the workbook summary.
- In the New form dialog, type the Name of the document. Empowerment Center proposes “Form 1” (or the next free number).
- In the tree on the left, find the dimensions you want to edit and add them to Form fields: with a double click, with Enter, with Add field or by dragging them.
- Order the fields by dragging their pills within the area. The order of the area is that of the columns of the grid.
- Click Create form.
The form appears in the segmentation. When you open it, ECenter processes it and reads its records.


Rules of the wizard#
- A single table. The first dimension you add sets the table of the form; the wizard shows it next to the name (“Table: Incidencias”). From then on, the tree only lets you add dimensions of that table.
- Only editable dimensions. The tree does not offer metrics or dimensions with a function (those that calculate their value, such as the year of a date), because they cannot be written.
- At least one field. Without fields, the button is disabled and the footer of the dialog says “Choose at least one field”.
- The key is always read. Even if you do not add the fields of the primary key, the form reads it to identify each record. If you want to see the key or type it when adding records, add its dimension.
Change the fields#
There are two ways to change the fields of a form that already exists:
| From | How | What is saved |
|---|---|---|
| The workbook | Document menu › Wizard…. The dialog is titled “Wizard of “…”” and the table is already set. Click Apply. | The document, right away. |
| The form itself | ⋯ › Fields… in the header (in a detail, ⋯ › Fields… on its toolbar). The dialog is titled “Fields of …”. Click Apply. | The design of the form, which is saved afterwards with Save design. |
Changing the fields from the form reads it again. If you have unsubmitted changes, ECenter asks first (“Change the form without submitting the changes?”): Change without submitting loses them and Keep editing leaves everything as it was.
Add detail forms#
A detail form shows, in a tab below the grid, the records of another table that hang from the chosen record. For example, the invoices of the chosen customer.
- Open the form.
- For a detail of the main form, choose ⋯ › Detail… in the header. For a detail of a detail, use ⋯ › Detail… on the toolbar of that detail.
- In the “Detail information of …” dialog, choose the Detail table. The list says whether each table is “detail” (each master record has several) or “one-to-one”.
- Add the fields of the detail as in the wizard.
- Click Add detail.
The form is read again with the new tab. To keep it, click Save design.


- Only the tables that have a relationship with that of the master in the metadata are offered: a one-to-many relationship from the master or a one-to-one relationship. If there is none, Detail… is disabled.
- Details nest without limit: a customer, its invoices and the lines of each invoice.
- To remove a detail, choose ⋯ › Remove detail… on its toolbar and confirm with Remove detail. The pending changes of that detail are lost.
Adjust the design#
The design is how the form looks. It is changed in the form itself and saved in the document with Save design (or Ctrl+S). Until you save it, the status line says “Unsaved design”. The design is the same for everyone who opens the form.
| What | How |
|---|---|
| View | Datasheet (one row per record) or Columns (one record with its fields one below the other), on the toolbar. |
| Sort order | Click the header of a field to sort by it; again, in reverse. Also in the field menu: Sort ascending, Sort descending and Remove the sort. A list field is sorted by the code, not by the description. |
| Width | Drag the right edge of the header. A double click on the edge returns to the default width. In the field menu, Width… lets you type it in pixels (from 40 to 1000; empty, the default one). |
| Hide a field | Field menu › Hide. The field stays in the form, but is not shown. Show hidden (n) on the toolbar shows them all again. |
Validation rules#
A field can carry rules that check what is typed in it before saving it. Field menu › Validation rules…:
| Rule | On which fields | What it requires |
|---|---|---|
| Required | All | That it is not left empty. |
| Minimum and Maximum | Numeric | That the number is between the two (both included). You can set only one. |
| Minimum length and Maximum length | Text | How many characters it can have. |
| Format | Text | One from a closed list: email address, phone number, postal code, NIF, NIE or CIF (with its letter or its check digit), IBAN (with its check digits), digits only, letters and digits only, or web address. |
Remove the rules leaves the field without any. The rules are part of the design: they are saved with Save design and apply to everyone who uses the form.
ECenter checks them when submitting the changes, in the browser and again on the server; in a new record, also the fields left empty, and in a modified one, only those that change (see Submitting the changes).
The menu of a field is opened with a right click on its header, with the arrow of the header or with Shift+F10 from a cell.
Note
The sort order you choose is applied right away in your browser. The order saved with the design is the one ECenter uses when it reads the form again.
If the form uses data you cannot see, the design is read-only for you: Save design is disabled (“It uses data you do not have access to”). You can keep editing the data you see.