Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetColInfo - method of the PmgEventViewer 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.
title - Displayed column name.
width - Column width.
count - Number of columns. The vColId parameter must be: null for JavaScript or Empty pro VBScript.
vColId(Variant) Identifier or index of a single column containing the value to be returned.

The value $all means that the value for all columns will be returned in the form of array (PmArray object).

Return values:
Returns the value or an array of values.

If an error occures, then the method returns: null for JavaScript or Empty pro 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 information about all columns.
Pm9.00.00: Created
PROMOTIC 9.0.14 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice