Note |
---|
This routine is available starting with SIL Insight Connector™ 5.8.0.0. |
Syntax
tempoAddAllocationinsight_getAttribByName(allocationid)
Description
...
Routine adds a new Tempo Planner allocation.
...
Package
insight
Short Name
getAttribByName (only when using package)
Description
Gets an attribute by name, and returns the string representation for it.
Parameters
Parameter name | Type | Required | Description |
---|
id |
integer | Yes | The |
Return type
...
id of the object attribute. |
Return type
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); |
See also
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|