Difference between revisions of "Text string (Named Data Type)"

From wiki.fine.cz
Jump to navigation Jump to search
(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...")
 
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'''


[[Společné vlastnosti prvků pojmenovaných dat|'''Společné vlastnosti''']]
[[Common properties of Named Data|Common Properties]]
{| class="wikitable"
{| class="wikitable"
|+
!Property
Vlastnosti textového řetězce
!XML
!Vlastnost
!Description
!XML v šabloně
!Presence
!Popis
!Default
|-
|-
|Značka
|Settings
|<sup>[A]</sup> STRING <code>Symbol</code>
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Settings</code>
|[[Formátovaná textová hodnota|Formátovaný text]], který se použije při zadávání a výstupech ve formátu Symbol=Hodnota [Jednotka]
|
|required
|
|-
|-
|Jednotka
|&nbsp;&nbsp;&nbsp;&nbsp;Symbol
|<sup>[A]</sup> STRING <code>UnitNameMetric</code>
|&nbsp;&nbsp;&nbsp;&nbsp;<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)
|-
|&nbsp;&nbsp;&nbsp;&nbsp;Unit
|&nbsp;&nbsp;&nbsp;&nbsp;<sup>[[Legend of XML elements|[A]]]</sup> STRING <code>UnitNameMetric</code>


<sup>[A]</sup> STRING <code>UnitNameImperial</code>
&nbsp;&nbsp;&nbsp;&nbsp;<sup>[[Legend of XML elements|[A]]]</sup> STRING <code>UnitNameImperial</code>
|Popis jednotky - použije se podle aktuálního [[Jednotky|systému jednotek]] při zadávání a výstupech ve formátu Symbol=Hodnota [Jednotka]
|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)
|-
|-
|Víceřádkový text
|&nbsp;&nbsp;&nbsp;&nbsp;Multiline text
|<sup>[A]</sup> BOOL <code>Multiline</code>
|&nbsp;&nbsp;&nbsp;&nbsp;<sup>[[Legend of XML elements|[A]]]</sup> BOOL <code>Multiline</code>
|Text je víceřádkový (jinak jen jednořádkový)
|The text is multiline (otherwise only single line)
|optional
|<code>false</code>
|-
|-
|Text při nezadaném
|&nbsp;&nbsp;&nbsp;&nbsp;Empty text
|<sup>[A]</sup> STRING <code>EmptyText</code>
|&nbsp;&nbsp;&nbsp;&nbsp;<sup>[[Legend of XML elements|[A]]]</sup> STRING <code>EmptyText</code>  
|Text, který se použije, pokud uživatel nezadá vlastní
|[[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
|
|-
|&nbsp;&nbsp;&nbsp;&nbsp;Allow empty
|&nbsp;&nbsp;&nbsp;&nbsp;<sup>[[Legend of XML elements|[A]]]</sup> BOOL <code>AllowEmpty</code>
|Entered text can be empty
|optional
|<code>true</code>
|-
|&nbsp;&nbsp;&nbsp;&nbsp;Maximal length
|&nbsp;&nbsp;&nbsp;&nbsp;<sup>[[Legend of XML elements|[A]]]</sup> INT <code>MaxLength</code>
|Maximum number of characters, zero means unlimited
|optional
|0
|}
|}
'''Example of Template XML'''


====Příklad zápisu XML v šabloně====
<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>


====Příklad zápisu XML v datech====
'''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>
<code>ID</code> může být buď <u>GUID</u>, nebo jednoznačný <u>textový identifikátor</u>.

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

Common Properties

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 UnitNameImperial

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

Common Properties

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" />