Difference between revisions of "Text string (Named Data Type)"
Jump to navigation
Jump to search
Petr.Bures (talk | contribs) (Created page with "It is used to store a text value or a formatted text value (properties 1 to 10), whether single-line or multi-line. '''Společné vlastnosti''' {| class="wikitable" |+ Vlastnosti textového řetězce !Vlastnost !XML v šabloně !Popis |- |Značka |<sup>[A]</sup> STRING <code>Symbol</code> |Formátovaný text, který se použije při zadávání a výstupech ve formátu Symbol=Ho...") |
Petr.Bures (talk | contribs) m |
||
| (28 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
It is used to store a text value or a [[formatted text value]] (properties 1 to 10), whether single-line or multi-line. | 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''' | |||
[[ | [[Common properties of Named Data|Common Properties]] | ||
{| class="wikitable" | {| class="wikitable" | ||
!Property | |||
!XML | |||
! | !Description | ||
! | !Presence | ||
! | !Default | ||
|- | |- | ||
| | |Settings | ||
|<sup>[ | |<sup>[[Legend of XML elements|[E]]]</sup> <code>Settings</code> | ||
| | | | ||
|required | |||
| | |||
|- | |- | ||
| | | Symbol | ||
|<sup>[A]</sup> STRING <code>UnitNameMetric</code> | | <sup>[[Legend of XML elements|[A]]]</sup> STRING <code>Symbol</code> | ||
|[[Formatted text value|Formatted text]] to be used for input and output in the format Symbol = Value [Unit] | |||
|optional | |||
|(empty) | |||
|- | |||
| Unit | |||
| <sup>[[Legend of XML elements|[A]]]</sup> STRING <code>UnitNameMetric</code> | |||
<sup>[A]</sup> STRING <code>UnitNameImperial</code> | <sup>[[Legend of XML elements|[A]]]</sup> STRING <code>UnitNameImperial</code> | ||
| | |Unit description ([[Formatted text value|formatted text]]) - used according to the current Unit System when entering and outputting in the format Symbol = Value [Unit] | ||
|optional | |||
|(empty) | |||
|- | |- | ||
| | | Multiline text | ||
|<sup>[A]</sup> BOOL <code>Multiline</code> | | <sup>[[Legend of XML elements|[A]]]</sup> BOOL <code>Multiline</code> | ||
| | |The text is multiline (otherwise only single line) | ||
|optional | |||
|<code>false</code> | |||
|- | |- | ||
| | | Empty text | ||
|<sup>[A]</sup> STRING <code>EmptyText</code> | | <sup>[[Legend of XML elements|[A]]]</sup> STRING <code>EmptyText</code> | ||
| | |[[Formatted text value|Formatted text]] to show in input field if the user does not enter his own | ||
|optional | |||
|(empty) | |||
|- | |||
|Range | |||
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Range</code> | |||
| | |||
|optional | |||
| | |||
|- | |||
| Allow empty | |||
| <sup>[[Legend of XML elements|[A]]]</sup> BOOL <code>AllowEmpty</code> | |||
|Entered text can be empty | |||
|optional | |||
|<code>true</code> | |||
|- | |||
| Maximal length | |||
| <sup>[[Legend of XML elements|[A]]]</sup> INT <code>MaxLength</code> | |||
|Maximum number of characters, zero means unlimited | |||
|optional | |||
|0 | |||
|} | |} | ||
'''Example of Template XML''' | |||
<code><Settings Ident="ID123" Symbol="Sign" EmptyText="Empty" UnitNameMetric="Met" UnitNameImperial="Imp" Multiline="true" /></code> | <code><Settings Ident="ID123" Symbol="Sign" EmptyText="Empty" UnitNameMetric="Met" UnitNameImperial="Imp" Multiline="true" /></code> | ||
= | '''Data XML definition''' | ||
[[Common properties of Named Data|Common Properties]] | |||
{| class="wikitable" | |||
!Property | |||
!XML | |||
!Description | |||
|- | |||
|Value | |||
|<sup>[[Legend of XML elements|[A]]]</sup> STRING <code>StrValue</code> | |||
|Contains string value as [[Formatted text value|formatted text]]. | |||
|} | |||
'''Example of Data XML''' | |||
<code><Item ID="{B1DC392E-0C1A-4016-8B77-1CD25D89DC65}" StrValue="Pokus obsah" /></code> | <code><Item ID="{B1DC392E-0C1A-4016-8B77-1CD25D89DC65}" StrValue="Pokus obsah" /></code> | ||
Latest revision as of 16:48, 23 June 2022
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" />