Reading function
#
getAllReadingFieldsForAssetCategoryThe getAllReadingFieldsForAssetCategory function retrieves all reading fields from a specified asset category.
Syntax:
new NameSpace("readings").getAllReadingFieldsForAssetCategory(
String
assetCategory);
Parameters:
Param | Data type | Description |
---|---|---|
assetCategory | String | The category names inside the asset. |
Returns: Map
Example:
log new NameSpace("readings").getAllReadingFieldsForAssetCategory("Chiller");
#
getAllReadingFieldsForSpaceCategoryThe getAllReadingFieldsForSpaceCategory function retrieves all reading fields from a specified space category.
Syntax:
new NameSpace("readings").getAllReadingFieldsForSpaceCategory(
String
spaceCategory);
Parameters:
Param | Data type | Description |
---|---|---|
spaceCategory | String | The category names inside the Space. |
Returns: Map
Example:
log new NameSpace("readings").getAllReadingFieldsForSpaceCategory("building");