Difference between revisions of "Named Data Template"

From wiki.fine.cz
Jump to navigation Jump to search
m
m
Line 23: Line 23:
|Name specification
|Name specification
|<sup>[[Legend of XML elements|[A]]]</sup> ENUM <code>NameSpecial</code>
|<sup>[[Legend of XML elements|[A]]]</sup> ENUM <code>NameSpecial</code>
|Specification of a template name data [[Special named data types|special type]]
|Specification of a name data [[Special named data types|special type]]
|optional
|optional
|if not specified, the first data type string
|if not specified, the first data type string

Revision as of 17:57, 3 October 2023

Named Data Template defines input of data for various items, e. g. field test, etc.

Template XML definition

Template consists of individual items of various types, documented in detail in Named Data.

Property XML Description Presence Default
GUID [A] STRING GUID GUID of the Template required
Preference of Ident [A] BOOL PreferIdent Use Identifier in input labels if specified, otherwise use Name optional false
Name specification [A] ENUM NameSpecial Specification of a name data special type optional if not specified, the first data type string
Template name [E] Name Template Name, used in multi templates oprional empty
Item [:E:] Item List of named data types required


Example of template XML

<Template GUID="{2BBF3527-B079-423B-9A34-AC5666693C36}" PreferIdent="false">

<Name Lang="CS" Text="Vrt" />

  <Item ID="{F12017FC-9AF4-4866-9FC2-BE7CF40B1A67}" ItemType="String">

    <Name Lang="CS" Text="Název zkoušky" />

    <Settings />

  </Item>

  <Item ..... />

  <Item ..... />

  <Item ..... />

</Template>