Update cookies preferences
Promotic

GetPersistInfo - method of the PmaTrendGroup object

Description:
Returns information regarding data saving to disk.
Syntax:
Variant GetPersistInfo(String sType)
Parameters:
sType(String) Type of the required information that has to be returned by the method.
"type" - The method returns system name of the storage technology used for writing to disk:
- "promoticcyclic" for Promotic binary file cyclic
- "accesscyclic" for Database Access cyclic
- "mssqlcyclic" for Database MS SQL Server cyclic
- "oraclecyclic" for Database Oracle cyclic
- "mysqlcyclic" for Database MySQL cyclic
- "firebirdcyclic" for Database FireBird cyclic
"activefilename" - If the "Storage type" configurator is set to storing to a disk file (Database Access backups (obsolete), Promotic binary file cyclic, Database Access cyclic), then the method returns the file name without path, otherwise the method returns the empty string "".
"activefilepath" - If the "Storage type" configurator is set to storing to a disk file (Database Access backups (obsolete), Promotic binary file cyclic, Database Access cyclic), then the method returns the file name with path, otherwise the method returns the empty string "".
"activedatabase" - If the "Storage type" configurator is set to storing to the database (Database Access backups (obsolete), Database MS SQL Server backups (obsolete), Database MS SQL Server cyclic, Database Oracle cyclic, Database MySQL cyclic, Database FireBird cyclic, Database Access cyclic), then the method returns the name of the database, where the data are stored, otherwise the method returns the empty string "".
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTrend = pMe.Pm("/Trends");
var sType = oTrend.GetPersistInfo("type");
var sFileName = oTrend.GetPersistInfo("activefilename");
var sFilePath = oTrend.GetPersistInfo("activefilepath");
var sDatabase = oTrend.GetPersistInfo("activedatabase");

Pm.Debug("Storage technology: " + sType);
Pm.Debug("File name: " + sFileName);
Pm.Debug("The file name with the path: " + sFilePath);
Pm.Debug("Database: " + sDatabase);
PROMOTIC 9.0.29 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.