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 the 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 iTrend;
var nCount = pMe.TrendsCount;
Pm.Debug(pMe.CursorTime);

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

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