Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetDataItem - method of the PmgAlarmStateViewer object

Description:
Returns the PmMap object containing the items of selected row.
The PmMap object contains items: state, timeon, timeoff, timeack, priority, globalid, area, source, desc, comment, usernote, ackerid
Syntax:
PmMap GetDataItem(String sWhat)
Parameters:
sWhat(String) Retrieved information type.
sel - for selected item
Return values:
The returned text string depends on the type of retrieved information sWhat.
Note:
This method is also functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oViewer = pMe.Items("/Viewer");
var oMapItem = oViewer.GetDataItem("sel");
Pm.Debug("description:" + oMapItem.desc);
Pm.Debug("source:" + oMapItem.source);

History:
Pm9.00.00: Created
PROMOTIC 9.0.16 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