Note |
This routine is available starting with SIL Insight Connector™ 5.8.0.0. 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_getAttribByName( | |
...
object, attrName) | Package | insight |
|
...
Alias | | Pkg Usage | getAttribByName( |
|
...
Description
Excerpt |
---|
|
Gets an attribute by name, and returns the string representation for it. |
Gets an attribute by name, and returns the string representation for it.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
|
...
...
...
A IObject type (predefined structure) representing the object |
|
...
...
Code Block |
---|
use "insight";
IObjectAttrType myAttribute;
myAttribute = getAttribByName(12345, "obj123");
runnerLog(myAttribute.id);
runnerLog(myAttribute.name);
runnerLog(myAttribute.description); |
Examples
Example 1 - getting object attribute type by id
Code Block |
---|
IObjectAttrType myAttribute;
myAttribute = insight_getAttribByName(12345);
runnerLog(myAttribute.id);
runnerLog(myAttribute.name);
runnerLog(myAttribute.description);
|
Example 2 - getting object attribute type by object type id and key
Code Block |
---|
IObjectAttrType myAttribute;
myAttribute = insight_getAttribByName(12345);
runnerLog(myAttribute.id);
runnerLog(myAttribute.name);
runnerLog(myAttribute.description);
|
Example 3 - using package
Yes | The name of the attribute to retrieve. |
|
Return Type
String
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
|
...
...
insight_routine" and space = currentSpace ( ) | labels | array_routines |
---|
|