Datatype - songgz/fastui GitHub Wiki
Datatype is used in Attribute (of Entity(Model) and Attribute) to control what displays in a field and how it displays. Datatype can be one of three different Type; Data, List or Table. The type selected is generally based on how the field is used and the level of control desired.
A Type of Datatype is used to define different field types (e.g. Button, Date Time, Number).
Here is a list of standard Datatypes supported in Fastui:
- VDate: This is used to show date fields (with no timestamp)
- VInteger: This is used to represent integer values.
- VNumber: This is used for any numeric fields.
- VString: This is used for alphanumeric string fields.
- VText: This is used for Character String of upto 2000 characters.
- VBoolean: This is use to represent fields with a Checkbox.
- VList: This is used to allow users to select from a drop down list box containing list of values.
- VTable: This is used for foriegn key references to other entities in the system. It will be rendered as a drop down dialog box with the identifier attribute from the referenced entity. If you use this datatype, you have to also specify the reference key. The reference key details the entity being referenced. An example of this is the customer_id in the Order entity (used to show the Bill To on the Sales Order window).
- VLookup: This is used to bring up a popup (search window) where the user can enter various criteria to search for the appropriate value. An example of this is the Product field on the Sales Order line.
- VTreeText: tree style text for VTreeGrid
- VTree: This is used for tree combobox fields.