Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This routine is available starting with SIL Insight Connector™ 5.8.0.0.
Note
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

insight_getAttribByName(

...

object, attrName)

Package

insight

Alias

...

Pkg Usage

getAttribByName(

...

object, attrName)

Description

Excerpt
hiddentrue
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
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

...

object

...

...

A IObject type (predefined structure) representing the object

...

being queried.

...

attrName

String

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

Code Block
use "insight";
IObjectAttrType myAttribute;
myAttribute = getAttribByName(12345, "obj123");

runnerLog(myAttribute.id);
runnerLog(myAttribute.name);
runnerLog(myAttribute.description);

Yes

The name of the attribute to retrieve.

Return Type

String

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse

...

cqllabel = "

...

insight_routine" and space = currentSpace ( )
labelsarray_routines