- 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 devicetag are mapped as themselves
- recs with deviceReftag are mapped to their parent device
- recs with siteare mapped to devices with parentsiteRef
- recs with spaceare mapped to devices with parentspaceRef
- recs with equipare 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