LastCfgTitle - property of the PmgTrendViewer object
Description:
The name of the recently loaded configuration file when the
LoadCfg method is called.
Syntax:
String LastCfgTitle
Note:
Property access for
read-only.
This property is also functional in
Web panels.
The
name of the configuration group of trends (read from the
*.tg or
*.xml file) is saved into this property each time when calling the
LoadCfg method.
This name is read from the content of the
*.tg file.
When creating the "
*.tg" file (by the
SaveCfg method) this name is not included in the file, it is necessary to add it into the file in any
ASCII editor, for example, as follows:
<?xml version="1.0" encoding="utf-8"?>
<pm>
<trendcfg>
<cfgtitle>My name of configuration group</cfgtitle>
...
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oTView = pMe.Items("../TrendView");
var sTitle = oTView.LastCfgTitle;
// Reading from the property
Dim oTView
Set oTView = pMe.Items("../TrendView")
Dim sTitle
Set sTitle = oTView.LastCfgTitle
' Reading from the property