Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onBackupCreate - event of the PmaTrendGroup object

Description:
The event is triggered on the request for creating new backup (still before creating the backup). In the pEvent.NewName and pEvent.NewTitle parameters the new system name and the user's name of the backup is preset. Both these items can be changed and the new system name and new user's name of the backup can be entered that is created afterwards.
Parameters:
pMe(Object) Reference to the PmaTrendGroup object where the event rises.
pEvent(Object) Reference to object describing detailed information about the specific event.
pEvent.NewName - (String) Preset system name of the backup, for example Trend10; it can be changed by writing into this parameter.
pEvent.NewTitle - (String) Preset user's name of the backup, for example Smelt no. 10; it can be changed by writing into this parameter.
Example:
Sets the file name of the daily trend backup. The backup is configured on the "Storage" tab. It is also possible to use the BackupCreate method.
JavaScriptVBScriptSelect and copy to clipboard

var time = Pm.CreatePmDateObject();
var year = time.GetYear();
var month = time.GetMonth();
if (month < 10)
month = "0" + month;
var day = time.GetDay();
if (day < 10)
day = "0" + day;
pEvent.NewName = "TrendsDay_" + year + "_" + month + "_" + day;
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