Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Trends - method of the PmgTrendViewer object

Description:
Returns tvTrend object.
Syntax:
Object Trends(Variant vTrend)
Parameters:
vTrend(Variant) vTrend is either the index into the container array of trends (zero-based index) or the tvTrend.ID identifier
-2 - Returns the last tvTrend object in the container.
-4 - Returns the active object (displayed over the other tvTrend objects) according to setting the TrendActive property.
0,1,2,... - Returns object specified by index (zero-based index).
"ID" - Returns the tvTrend object whose ID property equals to ID.
Note:
If the object specified in the vTrend parameter doesn't exist then method returns: null for JavaScript or Nothing pro VBScript (it can be tested by the Pm.IsValid method). See example.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends("t1");

if (oTrend)
{
oTrend.ValueMin = 100;
oTrend.ValueMax = 200;
}
else
//.. error
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice