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_getObject(id) or insight_getObject(objectTypeId, key)

Package

insight

Short Name

...

Alias

Pkg Usage

getObject(id) or getObject(objectTypeId, key)

Description

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

Parameter name

Type

Required

Description

id

...

Integer

Yes

The id of the object attribute.

Or

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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.

Return

...

Type

IObject

Examples

Example 1 - getting object attribute type by id

Code Block
use "insight";
IObject myObject;
myObject = insight_getObject(12345);

runnerLog(myObject.id);
runnerLog(myObject.labellablel);

Result:

Example 2 - getting object attribute type by object type id and key

Code Block
IObject myObject;
myObject = insight_getObject(12345);

runnerLog(myObject.id);
runnerLog(myObject.label);

...

Code Block
use "insight";
IObject myObject;
myObject = getObject(12345, "obj123");

runnerLog(myObject.id);
runnerLog(myObject.lablel);

Result:

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse

...

cqllabel = "insight_routine" and space = currentSpace ( )
labelsarray_routines