Promotic

TableFormatType - property of the tvGraph object

Description:
Type of setting format of values in the table mode.
For setting the format of values it is necessary to set the TableFormatType and TableFormat properties.
Syntax:
Long TableFormatType
Values:
1 - TableFormat specifies the number of decimal places.
10 (default) - TableFormat specifies the formatting rule in the C language.
25 - The value represents time and is displayed according to setting of time format. See PmgTrendViewer.TableTimeFormatType and PmgTrendViewer.TableTimeFormat.
Note:
Property access for read and write. The preset value of this property is defined in the "tvTrend > Table mode > Format > Type" configurator of this object.
 
This property is also functional in Web panels.
 
The property is used only if the table mode is set.
When the object is created, the value of this property is copied from the PmgTrendViewer.GraphInit object.
See also:
Example1:
Values are displayed with the precision of two decimal places at the most.
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oGraph = oTView.Trends("t1").GraphDefault;
oGraph.TableFormatType = 1;
oGraph.TableFormat = 2;
Example2:
The view format is a real number with the maximum places of 8 digits from which there are 2 decimal places.
JavaScriptVBScriptSelect and copy to clipboard

oGraph.TableFormatType = 10;
oGraph.TableFormat = "8.2f";

History:
Pm8.03.14: Added new property value 25
PROMOTIC 9.0.22 SCADA system documentation - MICROSYS, spol. s r.o.

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