BString allMeters(BMeterList meters) - returns a String displaying the name and meter percentage for all meters assigned to the tenant's contract. It uses the format, <meterName> (meterPercentage) | <meterName2> (meterPercentage) |.
station:|slot:/|bql:select parent.displayName, niagaraTenantBilling:Lib.allMeters(meters) as 'All Meters' from niagaraTenantBilling:Contract
BString sharedMeters(BMeterList meters) - returns a String displaying the name and meter percentage only for meters assigned to the tenant's contract which have a configured meter percentage less than 100%. It uses the same format to display the string as the allMeters scalar function.
station:|slot:/|bql:select parent.displayName, niagaraTenantBilling:Lib.sharedMeters(meters) as 'Shared Meters' from niagaraTenantBilling:Contract
BBoolean sharedMeter(BMeterList meters) - returns a Boolean indicating whether any of the meters in the list have a configured meter percentage less than 100%.
station:|slot:/|bql:select parent.displayName, niagaraTenantBilling:Lib.sharedMeters(meters) as 'Shared Meters' from niagaraTenantBilling:Contract where niagaraTenantBilling:Lib.sharedMeter(meters)='true'
Copyright © 2000-2013 Tridium Inc. All rights reserved.