Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetBackupInfo - method of the PmgEventViewer object

Description:
Returns information regarding backups.
Syntax:
Variant GetBackupInfo(String sWhat, [String sParams], [Function onComplete])
Parameters:
sWhat(String) Specifies type of returned information.
active.id - Returns id of active backup. Synchronous, the onComplete parameter is not used.
list - Returns 2-dimesnional array with backup list (id + displayed text). Asynchronous, the onComplete parameter is used.
sParams[optional] (String) Additional parameters. Not being used so far. Must be omited or an empty string "" must be used.

Entries are in KeyVal format, for example "name1:value1;name2:value2;".

onComplete[optional] (Function) The onComplete parameter contains a function that will be called for asynchronous handover of the result. The function must be in syntax:

function onComplete(result) {};

where the result parameter contains the returned value (result) of the asynchronous calling.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oViewer = pMe.Items("/Viewer");
var aBackup = oViewer.GetBackupInfo("list", "");
var sBackup = oViewer.GetBackupInfo("active.id", "");

History:
Pm9.00.00: Created
PROMOTIC 9.0.13 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