Skip to main content

Reading function

getAllReadingFieldsForAssetCategory#

The getAllReadingFieldsForAssetCategory function retrieves all reading fields from a specified asset category.

Syntax:

new NameSpace("readings").getAllReadingFieldsForAssetCategory(String assetCategory);

Parameters:

ParamData typeDescription
assetCategoryStringThe category names inside the asset.

Returns: Map

Example:

log new NameSpace("readings").getAllReadingFieldsForAssetCategory("Chiller");

getAllReadingFieldsForSpaceCategory#

The getAllReadingFieldsForSpaceCategory function retrieves all reading fields from a specified space category.

Syntax:

new NameSpace("readings").getAllReadingFieldsForSpaceCategory(String spaceCategory);

Parameters:

ParamData typeDescription
spaceCategoryStringThe category names inside the Space.

Returns: Map

Example:

log new NameSpace("readings").getAllReadingFieldsForSpaceCategory("building");