aras.getItemById Method
Gets Item node by Item ID. System will load data from server when:- Item node exists in cache and is dirty, but contained levels is less than requested levels.
- Item node does not exists in cache.
Syntax
aras.getItemById(typeName,id,levels,configPath,select)Parameters
Name | Type | Description |
---|---|---|
typeName | String | Required. Item type. |
id | String | Required. Item ID. |
levels | String | Optional. Expanding depth for Relationships. Default is 0. |
configPath | String | Optional. RelationshipType name which should be loaded together. Default is empty. When specifying this parameter, "levels" must be greater than zero. If there are various values, use "|" to separate. |
select | String | Optional. The Property to return. Separating by comma. Default is empty (select all Properties). |
Return Value
An Object or Null.Returns Item node if the data is loaded successfully, otherwise returns Null.
See Also
aras ObjectAras Innovator Client Framework
This is somehow the first sample, that shows that it´s possible to add a select to an getItemById query. Haven´t seen this yet, also it´s a great benefit when it comes to performance issues.
ReplyDeleteThanks!