|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 a server. See tvTrend.ID
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).
var nCount = pMe.TrendsCount;
for (i = 0; i < nCount; i++)
var oTrend = pMe.Trends(i);
Pm.Debug(oTrend.ID + " = " + oTrend.Points.GetValueByIndex(-2, 0));