ConnectionItem - property of the tvTrend object
Description:
Identifier of trend variable in the
PmaTrendGroup object. The
tvTrend object reads data from this variable and dispays its chart.
This is a value of the "
Trend identifier" configurator in data extension
ExtTrend.
Syntax:
String ConnectionItem
Note:
Property access
for read and write.
The default value of this property is defined in the "
tvTrend > Data source connection > Variable" configurator of this object.
This property is also functional in
Web panels.
After writing into this property, it is necessary to call the
Connect method with the
nType=0 parameter.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oTView = pMe.Items("../TrendView");
var oTrend = oTView.Trends(0);
if (oTrend)
{
var sItem = oTrend.ConnectionItem;
// Reading from the property
// or
oTrend.ConnectionItem = "t2";
// 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 sItem
sItem = oTrend.ConnectionItem
' Reading from the property
' or
oTrend.ConnectionItem = "t2"
' Writing into the property
End If