AccountNamesByWaterOwner

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

Description

This function returns a list of names of Accounts on a specified Object having the indicated WaterOwner, 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

WaterOwner name or "NONE" or "ALL"

Evaluation

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

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

If the WaterOwner 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

WaterOwners and priority dates are properties of Accounts.

 
AccountNamesByWaterOwner (%"Heron Reservior", "Contractor2")
 
{"Account1","Account2"}