Difference between revisions of "NXSL:GetDCIValue"

From NetXMS Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ Get last value of DCI with given ID on given node. == Syntax == GetDCIValue(''node'', ''id''); == Parameters == :{| |- | ''node'' || Node object....")
 
m (Text replacement - "^" to "{{deprecated}}")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Get last value of DCI with given ID on given node.
Get last value of DCI with given ID on given node.


Line 20: Line 20:
== Return Value ==
== Return Value ==


Last value for given DCI or '''null''' if DCI with given ID does not exist or has no collected values.
Last value for given DCI (string for normal DCIs and [[NXSL:Table|Table]] object for table DCIs) or '''null''' if DCI with given ID does not exist or has no collected values.





Latest revision as of 16:13, 13 September 2022

This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Get last value of DCI with given ID on given node.


Syntax

GetDCIValue(node, id);


Parameters

node Node object. Predefined variable $node can be used to refer to current node in transformation script or event processing policy rule.
id DCI ID.


Return Value

Last value for given DCI (string for normal DCIs and Table object for table DCIs) or null if DCI with given ID does not exist or has no collected values.


Examples

GetDCIValue($node, FindDCIByName($node, "Status"))	->	0