Update cookies preferences

onReadData - event of the PmgTrendViewer object

The event is triggered any time when viewer asks for new data.
For example, on moving the time axis
- by dragging the mouse
- by calling the methods ScrollTime, ZoomTime, ReadData
- or the autoscroll tick.
pMe(Object) Reference to the PmgTrendViewer object where the event rises.
pEvent(Object) Reference to the object describing detailed information about the specific event.
pEvent.Range - (String) [for reading] Type of the query.
"minmax": Request for the data was sent in the range from pEvent.TimeMinNew to pEvent.TimeMaxNew or the tvTrend.Points object has to be filled up by the data in the same range.
pEvent.TimeMinNew - (Date) [for reading] (from) Initial new time.
pEvent.TimeMinType - (Long) [for reading] Time type in the pEvent.TimeMinNew property.
This property has the same values as the TimeSetType property.
pEvent.TimeMaxNew - (Date) [for reading] (to) End new time.
pEvent.TimeMaxType - (Long) [for reading] Time type in the pEvent.TimeMaxNew property.
This property has the same values as the TimeSetType property.
This event is not functional yet in the Web panel.

If some of tvTrend objects is not connected (see the tvTrend.Connect method) to data source (to the variable in the PmaTrendGroup object), then it possible to fill its buffer for data points in this event. See: tvTrend.Points, tvPoints.AddPoints.
See also:
JavaScriptVBScriptSelect and copy to clipboard

Pm.Debug("TimeMinNew: " + pEvent.TimeMinNew + ", TimeMaxNew: " + pEvent.TimeMaxNew);
PROMOTIC 9.0.28 SCADA system documentation MICROSYS, spol. s r.o.

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