Promotic

GetTimeFormat - method of the PmgAlarmStateViewer object

Description:
Returns the formatting rule for defined column with time.
Syntax:
String GetTimeFormat(String sWhat)
Parameters:
sWhat(String) Specifies 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 value:
Returns formatting rule. See Pm.FormatDate.
If an error occures, then the method returns: null for JavaScript or Empty for 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.27 SCADA system documentation MICROSYS, spol. s r.o.

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