This routine is available starting with SIL Insight Connector™ 5.8.0.0.
Syntax
insight_getObject(id) or insight_getObject(objectTypeId, key)
Package
insight
Short Name
getObject (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
Examples
Example 1 - getting object attribute type by id
IObject myObject; myObject = insight_getObject(12345); runnerLog(myObject.id); runnerLog(myObject.label);
Example 2 - getting object attribute type by object type id and key
IObject myObject; myObject = insight_getObject(12345); runnerLog(myObject.id); runnerLog(myObject.label);
Example 3 - using package
use "insight"; IObject myObject; myObject = getObject(12345, "obj123"); runnerLog(myObject.id); runnerLog(myObject.lablel);