- Index
- »
- point
- »
- func:toDevices
def
func:toDevices
toDevices(recs)
Map a set of recs to to a grid of devices
. The recs
parameter may be any value accepted by toRecList()
. Return empty grid if no mapping is found. The following mappings are supported:
- recs with
device
tag are mapped as themselves - recs with
deviceRef
tag are mapped to their parent device - recs with
site
are mapped to devices with parentsiteRef
- recs with
space
are mapped to devices with parentspaceRef
- recs with
equip
are mapped to devices with parentequipRef
Examples:
read(site).toDevices // return children devices within site read(space).toDevices // return children devices within space read(equip).toDevices // return children devices within equip read(point).toDevices // return point's parent device