Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetTimeFormat - method of the PmgAlarmStateViewer object

Description:
Returns the formatting rule for defined column with time.
Syntax:
String GetTimeFormat(String sWhat)
Parameters:
sWhat(String) Defines the column with time.
on - Column timeon. See "Time format TimeOn" configurator.
off - Column timeoff. See "Time format TimeOff" configurator.
ack - Column timeack. See "Time format TimeAck" configurator.
Return values:
Returns formatting rule. See Pm.FormatDate.

If an error occures, then the method returns: null for JavaScript or Empty pro VBScript (it can be tested by the Pm.IsValid method).

Note:

This method is also functional in Web panels.

Example:
JavaScriptVBScriptSelect and copy to clipboard

var oViewer = pMe.Items("/Viewer");
var sFormat = oViewer.GetTimeFormat("on");

History:
Pm9.00.14: Created
PROMOTIC 9.0.15 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