AttributeDef

Property name

Data Type

Description

name

string

Name of the attribute

required

number

Set to 1 if the attribute is required. Else, set to 0.

flags

uint

The flag value determines whether an attribute is hidden, read-only or neither.

The following are the values that an attribute can have:

Constants.FV_AF_READ_ONLY (0x0001) - The attribute value is read-only.

Constants.FV_AF_HIDDEN (0x0002) - The attribute value is hidden.

NULL - The attribute value is neither read-only nor hidden.

attrType

number

Denotes the attribute value’s type. The value is one of:

Constants.FV_AT_STRING (0) - Any arbitratry text string.

Constants.FV_AT_STRINGS (1) - One or more arbitrary text strings.

Constants.FV_AT_CHOICES (2) - A value from a list of choices.

Constants.FV_AT_INTEGER (3) - A signed whole number (optionally restricted to a range of values).

Constants.FV_AT_INTEGERS (4) - One or more integers (optionally restricted to a range of values).

Constants.FV_AT_REAL (5) - A real number (optionally restricted to a range of values).

Constants. FV_AT_REALS (6) - One or more real numbers (optionally restricted to a range of values).

Constants.FV_AT_UNIQUE_ID (7) - A string that uniquely identi­fies an element.

Constants.FV_AT_UNIQUE_IDREF (8) - A reference to a UniqueID attribute.

Constants.FV_AT_UNIQUE_IDREFS (9) - One or more references to a UniqueID attribute.

choices

Strings

The choices from which to select, if the Type parameter is set to Constants.FV_AT_CHOICES (2).

defValues

Strings

Default value of the attribute.

rangeMin

string

The minimum permissible value, if any.

rangeMax

string

The maximum permissible value, if any.


January 11, 2016

Legal Notices | Online Privacy Policy