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.
| 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>
Example of an invalid code from the CodeSet