Update cookies preferences
Promotic

GetColInfo - method of the PmgAlarmHistoryViewer object

Description:
Returns information regarding the properties of viewer columns.
Syntax:
Variant GetColInfo(String sWhat, Variant vColId)
Parameters:
sWhat(String) Obtained information type.
id - Column identifier.
index - Column index.
title - Displayed column name.
width - Column width.
count - The number of columns. The vColId parameter must be: null for JavaScript or Empty for VBScript.
vColId(Variant) Identifier or index of a single column containing the value to be returned.
The $all value means that the value for all columns will be returned in the form of the PmArray object.
Return value:
Returns a value or an array of values.
If an error occures, then the method returns: null for JavaScript or Empty for VBScript (it can be tested by the Pm.IsValid method).
Note:
This method is also functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oViewer = pMe.Items("/Viewer");
var sTitle = oViewer.GetColInfo("title", 1);

History:
Pm9.00.14: New option "$all", for obtaining the information about all columns.
Pm9.00.00: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.