capIdsGetByParcel

Returns records that have the same parcel as the current record, as an array of capId (CapIDModel) objects.

Version

1.4

Parameters

Parameter Type Description
pParcelNum (optional) string Parcel number to search for. If null or omitted, the function uses the first parcel number on the current record.

Returns

If the current record has no parcel, returns false.

Notes

The records returned include the current record.

To find the number of records returned, store the return value to a variable and use the length property to find the number of records in the array.

Example

capArray = capIdsGetByParcel(); logDebug("Number of CAPs: " + capArray.length);