Difference between revisions of "NXSL:BindObject"

From NetXMS Wiki
Jump to navigation Jump to search
Line 2: Line 2:
Bind all NetXMS objects that can be bound from console (nodes, subnets, clusters, and another containers) to container objects.
Bind all NetXMS objects that can be bound from console (nodes, subnets, clusters, and another containers) to container objects.


'''Since:''' 1.2.0


== Syntax ==
== Syntax ==

Revision as of 21:20, 26 July 2012

Bind all NetXMS objects that can be bound from console (nodes, subnets, clusters, and another containers) to container objects.

Since: 1.2.0

Syntax

BindObject(parent, child);


Parameters

parent Parent object (NetObj referring to container object or infrastructure service root).
child The NetXMS object to be linked to given parent object (Node or NetObj referring to subnet, container, or cluster).


Return Value

None.


Examples

BindObject(FindObject(2), $node);    // Link current node directly to "Infrastructure Services"
BindObject(FindObject("Services"), FindObject("Service_1"));    // Link object named "Service_1" to container "Services"