Text string (Named Data Type)
Jump to navigation
Jump to search
It is used to store a text value or a formatted text value (properties 1. to 10.), whether single-line or multi-line.
Template XML definition
Property | XML | Description | Presence | Default |
---|---|---|---|---|
Settings | [E] Settings
|
required | ||
Symbol | [A] STRING Symbol
|
Formatted text to be used for input and output in the format Symbol = Value [Unit] | optional | (empty) |
Unit | [A] STRING UnitNameMetric
[A] STRING |
Unit description (formatted text) - used according to the current Unit System when entering and outputting in the format Symbol = Value [Unit] | optional | (empty) |
Multiline text | [A] BOOL Multiline
|
The text is multiline (otherwise only single line) | optional | false
|
Empty text | [A] STRING EmptyText
|
Formatted text to show in input field if the user does not enter his own | optional | (empty) |
Range | [E] Range
|
optional | ||
Allow empty | [A] BOOL AllowEmpty
|
Entered text can be empty | optional | true
|
Maximal length | [A] INT MaxLength
|
Maximum number of characters, zero means unlimited | optional | 0 |
Example of Template XML
<Settings Ident="ID123" Symbol="Sign" EmptyText="Empty" UnitNameMetric="Met" UnitNameImperial="Imp" Multiline="true" />
Data XML definition
Property | XML | Description |
---|---|---|
Value | [A] STRING StrValue
|
Contains string value as formatted text. |
Example of Data XML
<Item ID="{B1DC392E-0C1A-4016-8B77-1CD25D89DC65}" StrValue="Pokus obsah" />