Fieldname

Default

Description

Name


Defines the name of a code table within the referred CodeSet.

Allow invalid codes

No

Defines whether codes marked as invalid (displayed) are accepted.

URL*


Defines the localization of the CodeSet. Here, you can indicate a complete URL or only a CodeSet name. If only the name is indicated, the file will be searched in the directory where the XUI file is located.

Class


Instead of the indication of an URL, you can also indicate your Java class definition.


*The indicated CodeSet file (if an URL has been indicated) is about an XML file, which must correspond to a pre-defined format (codes.xsd).

Structure of a CodeSet (XML schema)
 



XML schema definition: codeSet

Attribute

Default

Description

name


Defines the name of a code table.


XML schema definition: code

Attribute

Default

Description

Options

id


Defines the name of a code table.

-

status


valid

Defines whether the code is still valid.

  • If the code is set to 'invalid', it is marked as invalid in the selection box.
     
  • If the code is set to 'hidden', it gets hidden from the selection box.

valid, invalid, hidden


Example of a CodeSet file.

<?xml version="1.0" encoding="UTF-8"?>
<codes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="codes.xsd">
<codeSet name="deliveryOption">
<code id="A">
<de>EMail</de>
</code>
<code id="C">
<de>Postweg</de>
</code>
<code id="B" status="invalid">
<de>Luftweg</de>
</code>
</codeSet>
<codeSet name="deliverTo">
<code id="1">
<de>Lieferadresse</de>
</code>
<code id="2">
<de>Rechnungsadresse</de>
</code>
</codeSet>
</codes> 
The above shown example delivers two code tables, for „deliveryOption" and „deliverTo". The code with the identification „B" (Luftweg) was marked as invalid. Consequently, it is marked as invalid in the selection box. If the user selects this code, an error message is displayed.


Example of an invalid code from the CodeSet


  • Keine Stichwörter