Name - property of the tvTrend object
Description:
User name of trend.
Note:
Property access
for read and write.
The default value of this property is defined in the "
tvTrend > Basic settings > Trend name" configurator of this object.
This property is also functional in
Web panels.
If the
tvTrend object is connected to the trend server (e.g. by means of calling the
Connect method), then it can be set the property to the value of
"$default". In this case the value of the property is read from the
PmaTrendGroup object from the "
Displayed trend name" configurator.
The name is set, for example, when the trend is created by calling the
PmgTrendViewer.AddTrend method.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends(0);
if (oTrend)
{
var sName = oTrend.Name;
// Reading from the property
// or
oTrend.Name = "Temperature";
// Writing into the property
}
Dim oTView
Set oTView = pMe.Items("../TrendView")
Dim oTrend
Set oTrend = oTView.Trends(0)
If Not oTrend Is Nothing Then
Dim sName
sName = oTrend.Name
' Reading from the property
' or
oTrend.Name = "Temperature"
' Writing into the property
End If