Promotic

onCursorTimeChange - event of the PmgTrendViewer object

Description:
The event is triggered if the time on the position of the vertical cursor line changed. Values of the CursorTime and tvTrend.CursorValue properties changed.
Parameters:
pMe(Object) Reference to the PmgTrendViewer object where the event rises.
pEvent(Object) Reference to object describing detailed information about the specific event.
Note:
This event is also functional in Web panels.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var i;
var nCount = pMe.TrendsCount;
Pm.Debug(pMe.CursorTime);

for (i = 0; i < nCount; i++)
{
var oTrend = pMe.Trends(i);
Pm.Debug(oTrend.ID + "=" + oTrend.CursorValue(2));
}
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

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