Configuring Attributes

The attributes within a type must also be correctly added and configured in order for the type to be valid. You must specify both a name and a type for each attribute. The available attribute types are:

Attribute Type

Description

Integer

An integer, e.g. 12. The possible range is from -9223372036854775808 to 9223372036854775807, both inclusive.

Number

A number, e.g. 12.345. The possible range is from ±2.2×10−308 to ±1.8×10308 with slightly more than 15 digits of accuracy.

Boolean

A boolean value, i.e. either "true" or "false".

Character

A single character, e.g. "A".

Short Text

A short text. Will be displayed in a one-line text field.

Long Text

A long text. Will be displayed in a multi-line text box.

Password

A password. Will be displayed in a password field that shows asterisks instead of the characters in the password.

HTML

An HTML clip. This is the same as a Long Text, except that you can preview the clip in a browser window.

XML

An XML document. This is the same as a Long Text, except that only well-formed XML documents are allowed.

Date

A date. The date must be of the form yyyy-mm-dd hh:mm:ss.n, e.g. "1992-04-25 10:33:06.0".

Binary

Binary data, i.e. any sequence of bytes.

Image

An image. This is the same as Binary Data, except that you can preview the image.

PDF

A PDF document. This is the same as Binary Data, except that you can preview the PDF document.

Session

A session (containing cookies, authentications, etc.).

Currency

A currency code, as defined by the ISO-4217 standard, e.g. "EUR" for Euro.

Country

A country code, as defined by the ISO-3166 standard, e.g. "DE" for Germany.

Language

A language code, as defined by the ISO-639 standard, e.g. "de" for German.

JSON

A JSON value is either a JSON text or JSON Simple type where the JSON Simple type is either a JSON literal, a number, or a string.

An attribute has a number of other configurable properties, such as whether or not the attribute is visible from within Design Studio, and whether or not the attribute is required to contain data before a variable value of the type can be stored. Refer to the reference documentation on Design Studio for more information.