The Data Form is the T6 feature used to view, insert, update, and remove records from a Data Table. It works as an interaction interface with the database, allowing you to configure which fields will be displayed, which actions will be available, and which rules will apply during use.
When creating a form, the first step is to decide how it will be linked to a Data Table:
To access this feature, you must enable the DataForm New Create or Edit preview.
To create and edit data forms, the following permissions will be required:
The user must have the following Manager Features enabled under Permissions:
It will also be necessary to be associated with a global group with the following Manager Features enabled:
After creating a new table through this screen, the data form will open for editing without the need to access other screens.
The editor is divided into side panels:
When adding columns in the Designer, the form preview is updated in real time.
When we add a column from the Data Table to the Designer panel, some interactions will be possible, depending on the type of column added.
Delete: Available for all column types. Removes a column from the Designer panel.
Link Column: Available for all column types. Allows linking the selected column to an existing data form; when we create the link, we can access the associated form without leaving the source form.
Filtering: available only for columns of type Data Table or Dimension during editing.
Edit: Available for all column types. By clicking Edit, a side panel will open where we can change the properties of the selected column. The following fields are available:
Name: allows changing the display name in the form header;
Column Size: allows changing the dimension of the selected column; default value 210px;
Decimal Places: available only for columns of type Value; allows defining the number of decimal places to be displayed after the comma in a decimal number;
Column Alignment: dropdown where we can define the alignment of the data within the selected column; options Undefined, Left, Center, and Right;
Read Only: switch button; when disabled, allows writing in the cells of the selected column; when enabled, writing in the cells is blocked, allowing only data reading;
Apply User Security: we can use the flag "Apply User Security" in data form columns, making the displayed records filtered based on the logged-in user, hiding records intended for other users. To perform this filtering, a query-type Data Table will be required, where we bring the system users. We will use this Data Table to link with a column in the data form, thus allowing filtering by logged-in user. To apply this filter in pages, it will be necessary to create a Data Table to which we will link the data form identifier and add it in "Pages", applying user security and selecting, in the dropdown, the column we want to filter from the Data Table.
Data Table Columns: will only be enabled if the "Apply User Security" flag is active. Enables a dropdown for selecting a specific column of the associated Data Table;
Hierarchy: field enabled only when we have a column with a direct link to another column of the same Data Table;
Field Width: will only be applied when the opening type is set to Panel. The width limit for displaying a column in a panel is "12"; thus, if the value is set to "12", the column will occupy the entire row; if we set the value to "6", we will have two columns displayed in the same row, and so on.
Example: In the image below, we have the display of a data form with the view mode set to Panel.
Number of characters to open the dropdown: available only for columns of types Dimension, User, and Data Table. We can define how many characters are required to display the available options for selection; the default value is 3 characters;
Default value for the column: Through this field we can define a default value that will be displayed as an example before data entry; we can enter any value as long as it respects the insertion format allowed by the column. In a column with a defined default value, if we add a new row in the form without filling in data in the column in question, it will be automatically filled using the value defined as the default.
Example:
View: the View option will only be enabled for columns of type Data Table, or columns linked to a Data Table. When we click the icon
, a side panel will open where we can select the metadata that we want to be displayed in the form cell.
The Properties tab centralizes the form settings.
Save Button: Saves the settings and the arrangement of defined columns and pages.
Edit/View: Button that allows us to switch between edit and view modes without the need to change screens or reload the page. In edit mode the form configuration options will be active, while in View mode the configuration options cannot be changed.
←→
Properties Button: When we click Properties, a side panel will open, where we will define:
Permissions: We have the following checkboxes:
In addition to the property settings, it is possible to apply visual styles:
More details at: Formatting.
Access the T6 main menu;
Select the Explorer option;
Click New Item in the Ribbon;
Click Data Entry to display the available options;
→
After selecting the Data Table, the configuration and editing screen for the form will open, where we will configure the data dynamically. Initially, no row, column, or page will be displayed; we must configure the layout through the Data and Designer panels.
When selecting a column from the Data Table, it will be placed in the Designer panel, respecting the previous selection (column or page), and will be reflected alongside, in the data form preview.
Attention: If you switch between viewing/editing modes without saving, the changes made will be lost.
After saving the form, it will be ready for use.