Promotic
WikipediaLinkedInYoutubeTwitterFacebook

OpenBackup - method of the PmgAlarmHistoryViewer object

Description:
Open backup.
Syntax:
Empty OpenBackup(Variant vBackup, [Variant nMoveTo])
Parameters:
vBackup(Variant) Backup identifier. The $latest value means the last newest backup.
nMoveTo[optional] (Variant) Parameter indicating where to move the selected row of the opened backup.
The allowed values are: 21, 22, 23 and 24 (default).
See the MoveTo method.
Note:
The viewer connects automatically to the last backup after opening. The OpenBackup method allows switching between backups.
The method is asynchronous, therefore the onConnect event is triggered after each connection to the backup (includig the initial automatic connection).

Calling this method is meaningful only if the PmaAlarmGroup object to which this viewr is connected to has the "Storage type" configurator set to the same type that creates the backups, i.e. "Text file (*.al)" or "dBase III file (*.dbf)".

This method is also functional in Web panels.
Example:
Selects and sets the second item from the backup list
JavaScriptVBScriptSelect and copy to clipboard

var oViewer = pMe.Items("/Viewer");
var aBackups = oViewer.GetBackupInfo("list", "");
var sBackup = aBackups.GetItem(0, 1);
oViewer.OpenBackup(sBackup);

History:
Pm9.00.15: New nMoveTo parameter can be used to define where to move the selected row of opened backup.
Pm9.00.00: Created
PROMOTIC 9.0.17 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