AccountNamesByWaterType

This function evaluates to the list of names of Accounts on the specified Object having the indicated WaterType.

Description

This function returns a list of names of Accounts on a specified Object having the indicated WaterType, sorted in ascending Account priority date order. Accounts which don’t have a priority date are at the end of the list, sorted in ascending name order.

Type

LIST {STRING}

Arguments

Type

Meaning

1

OBJECT

The Object.

2

STRING

WaterType name or "NONE" or "ALL"

Evaluation

The set of Accounts on the Object are examined. The names of the Accounts having the specified WaterType are added to the returned list.

If the WaterType argument is "NONE," then only Accounts having the default (unassigned) WaterType are included in the returned list.

If the WaterType argument is "ALL," then that attribute is ignored. The returned list will contain the names of ALL Accounts on the Object.

The list is sorted as described above.

Comments

WaterTypes and priority dates are properties of Accounts.

 
AccountNamesByWaterType (%"Heron Reservior", "SanJuan")
 
{"Account3","Account4"}