typename( typeNumber )
Returns the type name of a given type number.
See also: typeof(), Delete Data Types
Keyword | Type | Description |
---|---|---|
|
Number (Integer) |
The type number to be inquired for its name. This may be retrieved by using typeof(x), where x is a value of the intended type, or referencing a type with 'type!{namespace}type-name' (within single quotes). |
Text
typeof(x)
, where x is a value of the intended type, or reference a type with type!{namespace}type-name
(within single quotes).1
typename(27)
Returns User or Group
.
1
typename(type!Integer)
Returns Number (Integer)
.
1
typename(type!Integer, type!Decimal, type!User)
Returns {"Number (Integer)", "Number (Decimal)", "User"}
. Multiple input values are supported.
1
typename({type!Integer, type!Decimal, type!User})
Returns {"Number (Integer)", "Number (Decimal)", "User"}
. A list of inputs is supported.
1
2
3
4
5
6
7
8
9
10
typename(
typeof(
"abc",
0.5,
47,
date(1985, 12, 10),
a!map(first: 1, second: 2),
{order: 1906, units: 46}
)
)
Returns { "Text", "Number (Decimal)", "Number (Integer)", "Date", "Map", "Dictionary" }
. typeof
returns a list of type numbers, which is evaluated and returned as a list of type names.
1
typename(typeof({ 1, 2, {}, 17 }))
Returns List of Number (Integer)
.
1
typename(typeof({ 1, 2, {}, 17 }), typeof({ 1.0, 2.2, 17.0 }))
Returns { List of Number (Integer), List of Number (Floating Point) }
.
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |
typename() Function