Difference between revisions of "Common properties of Named Data"
Petr.Bures (talk | contribs) m |
Petr.Bures (talk | contribs) m |
||
Line 106: | Line 106: | ||
<code></Item></code> | <code></Item></code> | ||
'''Example of Template XML with Master specified''' | |||
<code><Item ID="{EFEC9E11-6FFD-44B9-9FC8-AC6F1E892461}" ItemType="Enum"></code> | |||
<code> <Name Lang="CS" Text="Typ vzorku" /></code> | |||
<code> <Item ID="{F14426ED-878B-4B30-ACF0-EC7062DDEA80}" ItemType="EnumItem"></code> | |||
<code> <Name Lang="CS" Text="neporušený" /></code> | |||
<code> </Item></code> | |||
<code> <Item ID="{A99658F7-FD21-4F12-B1B8-7159E8C78F34}" ItemType="EnumItem"></code> | |||
<code> <Name Lang="CS" Text="porušený" /></code> | |||
<code> </Item></code> | |||
<code></Item></code> | |||
<code><Item ID="{C0D1DD2F-7B85-48DF-B74B-F567CCA865BB}" ItemType="String"></code> | |||
<code> <Name Lang="CS" Text="Označení vzorku" /></code> | |||
<code> <Master MasterGUID="{EFEC9E11-6FFD-44B9-9FC8-AC6F1E892461}"></code> | |||
<code> <Item GUID="{A99658F7-FD21-4F12-B1B8-7159E8C78F34}" /></code> | |||
<code> </Master></code> | |||
<code></Item></code> | |||
====Data XML definition==== | ====Data XML definition==== | ||
{| class="wikitable" | {| class="wikitable" |
Revision as of 08:23, 8 April 2022
Template XML definition
Property | XML | Description | Presence | Default |
---|---|---|---|---|
GUID | [A] STRING ID or GUID
|
Unique GUID of the named data element, is written to the ID attribute, if an alternative text identifier is used in the ID , optionally specified in the GUID attribute
|
required | |
Name | [E] Name
|
Element name, can be translated into multiple languages (see Multilingual text) | required | |
Comment | [E] Comment
|
Optional comment, can be translated into multiple languages (see Multilingual text) | optional | (empty) |
Item type | [A] ENUM ItemType
|
Item type {[V] String , [V] Double , [V] Enum , [V] Set , [V] EnumItem , [V] DateTime , [V] Table , [V] Group , [V] SoilPattern, [V] File }
|
required | |
Settings | [E] Settings
|
Different for each element type | required | |
Identifier | [A] STRING Ident
|
The optional identifier, used especially for libraries that have it prescribed, can then be reflected in the Mapping | optional | (empty) |
Read only | [A] BOOL ReadOnly
|
Item is read-only - cannot be edited by user, is defined by formula and calculated from another elements - see list of read-only items | optional | false
|
Master | [E] Master
|
Master Named Data Element of type Enum , must be on the same level as current element, used to hide input of the current element
|
optional | (empty) |
Master GUID | [A] GUID MasterGUID
|
GUID of the Master element | (required) | |
Master elements | [:E:] Item
|
GUIDs of the master elements items of type EnumElement, means if the value of the master data input is one on these elements, current element input is visible
If the master element is also hidden by this rule, current elemeni is also hidden |
(required) | |
Master element GUID | [A] GUID Value
|
(required) | ||
Range | [E] Range
|
optional | ||
Unique | [A] BOOL Unique
|
Entered data must be unique according to data on same input level - e. g. unique Name in column of table row | optional | false
|
Example of Template XML
<Item ID="{F12017FC-9AF4-4866-9FC2-BE7CF40B1A67}" ItemType="String">
<Name>
<Item Lang="CS" Text="Název zkoušky" />
<Item Lang="EN" Text="Test name" />
</Name>
<Comment>
<Item Lang="CS" Text="General / Fixed" />
</Comment>
<Settings Ident="ID123" />
</Item>
Example of Template XML with Master specified
<Item ID="{EFEC9E11-6FFD-44B9-9FC8-AC6F1E892461}" ItemType="Enum">
<Name Lang="CS" Text="Typ vzorku" />
<Item ID="{F14426ED-878B-4B30-ACF0-EC7062DDEA80}" ItemType="EnumItem">
<Name Lang="CS" Text="neporušený" />
</Item>
<Item ID="{A99658F7-FD21-4F12-B1B8-7159E8C78F34}" ItemType="EnumItem">
<Name Lang="CS" Text="porušený" />
</Item>
</Item>
<Item ID="{C0D1DD2F-7B85-48DF-B74B-F567CCA865BB}" ItemType="String">
<Name Lang="CS" Text="Označení vzorku" />
<Master MasterGUID="{EFEC9E11-6FFD-44B9-9FC8-AC6F1E892461}">
<Item GUID="{A99658F7-FD21-4F12-B1B8-7159E8C78F34}" />
</Master>
</Item>
Data XML definition
Property | XML | Description |
---|---|---|
Identifier | [A] STRING ID
|
ID can be either a GUID or a unique text identifier corresponding to ID / GUID attribute of Template Item
|
Example of Data XML
<Item ID="{B1DC392E-0C1A-4016-8B77-1CD25D89DC65}" StrValue="Pokus obsah" />