Note |
---|
This routine is available starting with SIL Insight Connector™ 5.8.0.0. |
Syntax
insight_getObjectAttrType
Package
Insight
Short Name
getObjectAttrType (only when using package)
Description
Excerpt |
---|
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | insight_getObjectAttrType(id) or insight_getObjectAttrType(objectTypeId, key) | Package | insight | Alias | | Pkg Usage | getObjectAttrType(id) or getObjectAttrType(objectTypeId, key) | |
Description
Excerpt |
---|
|
Returns the type of the attribute, either by id or by objectTypeId and key. |
Returns the type of the attribute, either by id or by objectTypeId and key.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
id | |
...
Integer | Yes | The id of the object attribute. |
|
Or
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
objectTypeId | |
...
Integer | Yes | The id of the type of object being queried. | key |
|
...
String | Yes | The key of the attribute. |
|
or issue key???
...
Return Type
IObjectAttrType
Examples
Example 1 - getting object attribute type by id
Code Block |
---|
|
use "insight";
IObjectAttrType myAttribute;
myAttribute = insight_getObjectAttrType(12345);
runnerLog(myAttribute.id);
runnerLog(myAttribute.name);
runnerLog(myAttribute.description); |
Result:
Example 2 - getting object attribute type by object type id and key
Code Block |
---|
IObjectAttrType myAttribute;
myAttribute = insight_getObjectAttrType(12345);
runnerLog(myAttribute.id);
runnerLog(myAttribute.name);
runnerLog(myAttribute.description); |
Example 3 - using package
Code Block |
---|
|
use "insight";
IObjectAttrType myAttribute;
myAttribute = getObjectAttrType(12345, "TEST-123obj123");
runnerLog(myAttribute.id);
runnerLog(myAttribute.name);
runnerLog(myAttribute.description); |
Result:
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
|
...
...
insight_routine" and space = currentSpace ( ) | labels | array_routines |
---|
|