Skip to end of banner
Go to start of banner

insight_getObjectAttrType

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

This routine is available starting with SIL Insight Connector™ 5.8.0.0.

Syntax

insight_getObjectAttrType(id)

or

insight_getObjectAttrType(objectTypeId, key)

Package

insight

Short Name

getObjectAttrType (only when using package)

Description

Returns the type of the attribute, either by id or by objectTypeId and key.

Parameters

Parameter name

Type

Required

Description

id

integer

Yes

The id of the object attribute.

Or

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

IObjectAttrType

Examples

Example 1 - getting object attribute type by id

IObjectAttrType myAttribute;
myAttribute = insight_getObjectAttrType(12345);

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

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

IObjectAttrType myAttribute;
myAttribute = insight_getObjectAttrType(12345);

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

Example 3 - using package

use "insight";
IObjectAttrType myAttribute;
myAttribute = getObjectAttrType(12345, "obj123");

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

See also

  • No labels