nxa.GetSimpleItemValuesSum
Description
This function calculates the sum of all items which a specific name in a specific sub tree..
Signature
number nxa.GetSimpleItemValuesSum(string, string, number)
Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
rootPath | string | M | The name of the root folder for the search. |
item_name | string | M | The name of the items that shall be included in the calculation |
deep | number | M | The max level of the sub tree that shall be included in the calculation |
Example
nxa.GetItemIds2("NETx\\VAR","Item001", 2)
returns the sum of the values of a specific sub tree.
Return
Type | Description |
---|---|
number | Sum of values. |
Â
Applies to
NETx BMS Platform R2 Build 2071+
NETx Multi Protocol Server R2 Build 2071+