onDataTrendReady - event of the PmgTrendViewer object
The event is triggered when viewer got data from server.
The data are intended for the tvTrend
object whose tvTrend.ID
property equals the value of the pEvent.TrendId
The event is triggered after
receiving and processing the data by the tvTrend
|pMe||(Object) Reference to the PmgTrendViewer object where the event rises.|
|pEvent||(Object) Reference to object describing detailed information about the specific event.| pEvent.TrendId
- (String) identification of the trend object that obtained the data from server. See the tvTrend.ID
After a request for the data was sent (i.e. the onReadData
event is triggered, e.g. scroll the time axis), the event is triggered so many times how many tvTrend
objects are connected to a server (for each tvTrend
Sending the request for the data and receiving the data (together with invoking this event) proceed asynchronously, i.e. after sending the request the viewer operates further, it is controllable, etc.
After the server processes the request, it sends the result back to the viewer and the viewer processes it (the viewer doesn't wait for processing the data by the server, the data can come to the server even with a delay depending on the quality of the connection).