Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
protogrid:field [2018-01-21 15:48] – created 84.73.90.139 | protogrid:field [2020-07-06 11:15] – jus | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Field ====== | ====== Field ====== | ||
- | A field is an element on a card. You can define | + | A field is an element on a card and describes a property of the represented data entry. Which fields are contained in a [[Card]] is defined |
+ | In comparison to relational databases, a Protogrid field plays the role of a table attribute. | ||
There are different types of fields: | There are different types of fields: | ||
Line 7: | Line 8: | ||
* Tableview | * Tableview | ||
* Date & time | * Date & time | ||
+ | * Relational | ||
+ | Each field on a card is based on a field definition. In this field definition, you can specify the name of the field, a help text, and standard behavior for this field. Field Properties include: | ||
+ | * User Input: Decide whether input for this field is optional or mandatory. | ||
+ | * User Enabled: Set whether the field should be: | ||
+ | * Editable: always editable to the user | ||
+ | * Editable before first save | ||
+ | * Computed by a [[protogrid: | ||
+ | * Computed by a [[protogrid: | ||
+ | * Hidden: Values might exist in the backend, but are not rendered for the user | ||
+ | * Hidden in client: The field is rendered hidden in the browser. Note that this is a feature for eased user access and not a security feature. | ||
+ | * Size in Grid: Important fields or field, where you expect the user to enter long texts, can be set to span an entire row. | ||
+ | * Default Value: For some field types, you may add a default value. This value is automatically written to the card upon creating. | ||
+ | * Min-Max-Validation (for Numbers and Date & times): You may require that the value of this field is no smaller or bigger than a given value. This will be validated upon saving. | ||
+ | * Regular-Expression-Validation (for Text): You may require the text to match a certain structure given by a regular expression in the field definition. This will be validated upon saving. Examples of regex strings are given below | ||
+ | * Mail: The regex string '' | ||
+ | * Phone: The regex string '' | ||
+ | |||
+ | Note that whether or not a field is editable to a certain user also depends on the users role in the [[Environment]]. |