Properties
👉 Choose Domain model > Classes
in the main menu.
Select a specific class to declare properties.
👉 Select the PROPERTIES
tab.
Property types​
wyStack supports many different property types. An overview:
Text​
This is the most basic property type: store a simple string. In the UI this property is represented as a simple text input.
Number​
Store a number: 1, 2, 3, 4.
Yes no​
Store a boolean. In the UI this property is represented as a checkbox.
Date time​
Store a DateTime(Offset). In the UI this property is represented as a Date and Time picker.
Date​
Store a DateTime(Offset). The time-part is ignored. In the UI this property is represented as a Date picker.
Time​
Store a DateTime(Offset). The date-part is ignored. In the UI this property is represented as a Time picker.
Lookup entity​
Reference another entity. Don't forget to configure what kind of relationship is created, using the LOOKUP
tab.
Lookup entities​
Reference other entities. Don't forget to configure what kind of relationship is created, using the LOOKUP
tab.
When you want to create a 1-n relationship: define also the other part of the relationship using a Lookup entity property on the related class.
When you want to create a n-n relationship: define also the other part of the relationship using a Lookup entities property on the related class.
Float​
Store a simple floating point. Don't use this if you need precision. Use a Decimal instead.
Rich text​
Store rich text, stored as HTML.
Multiline text​
Same as Text, but you can store multiline strings. In the UI this property is represented as a textarea.
Email address​
Same as Text, but contains e-mail address validation using a regular expression.
Password​
Store passwords. In the UI this property is represented as an input with type password.
Url​
Store a URL to a resource on internet.
File reference​
Store a reference to file in the blob store. In the UI this property is represented as a file picker.
Picture reference​
Store a reference to picture (JPG, PNG) in the blob store. In the UI this property is represented as a picture picker.
Enum​
Use an Enumeration that is declared elsewhere. Enum properties are stored as integers in the database.
Source code​
Store a piece of source code, like HTML, JavaScript or anything else.
Color​
Store a color. In the UI this property is represented as a color picker.
Map point​
Store a GPS coordinate on the map.
Computed text​
Compute a string using an expression.
exp.currentEntity.getPropertyValueAsString("FirstName") + " " + exp.currentEntity.getPropertyValueAsString("LastName")
See also: Expressions
Country​
Store a country. In the UI this property is represented as a list of countries.
Currency​
Store an amount of money.
Percentage​
Store a percentage.
Guid​
Store a global unique identifier. Has no UI representation.
Bytes​
Store an array of bytes. Has no UI representation.
Byte​
Store a byte. Has no UI representation.
File​
Store a file upload. In the UI this property is represented as a file upload control.
Picture​
Store a picture upload. In the UI this property is represented as a picture upload control.
Files​
Store multiple files. In the UI this property is represented as a file upload control.
Pictures​
Store multiple pictures. In the UI this property is represented as a picture upload control.
Json properties​
Store a dynamic data structure using JSON properties.
More information: https://formly.dev/examples/advanced/json-schema
On off​
Store a boolean. In the UI this property is represented as a on/off switch.
Picture url​
Store a URL to a picture on internet.
Icon​
Store an icon (name). In the UI this property is represented as an icon selector.
Long​
Store a number, Int64.
External system​
Not supported at the moment.
Html​
Store a piece of HTML.
Pdf document​
Same as file, but allows only PDF files and shows uploaded PDF's in a viewer.
Translatable text​
Store multiple language strings. For example, when the property name is Title, values are stored as: Title, Title_en, Title_fr, Title_...
See also: Cultures and currency
Phone number​
Store a phone number.
Lookup entity suggestion​
Store a weak relationship with another entity when no hard relationship between the entities is demanded.
Only the Name of the selected entity is stored.
Suggestion​
Provide a list with suggestions that the user can select while typing.
Map polygon​
Draw a polygon on the map. The polygon is stored as JSON.
Decimal​
Store a number with high precision.
Computed decimal​
Compute a decimal, based on an expression.
exp.currentEntity.getPropertyValueAsDecimal("Price") * exp.currentEntity.getPropertyValueAsDecimal("Quantity")
See also: Expressions
Ifc model​
Same as file, but allows only IFC files and shows uploaded IFC's in a viewer.
See also: IFC feature
Markdown​
Store a piece of Markdown, includes Markdown viewer.
Translation key​
Store a translation key, the User Interface will automatically translate the key into the language of the user.
Example value: @@DisplayLabelClass_MyEntity
See also: Markdown feature