Promotic

TableFormat - property of the tvGraph object

Description:
Format of column values in the table mode.
Syntax:
Variant TableFormat
Note:
Property access for read and write. The default value of this property is defined in the "tvTrend > Table mode > Format > Value" 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.
Initial value is the text "%4.f".

Setting this property differs according to setting the TableFormatType property:
If has the value 10, then the formatting rule is set to TableFormat in the form, for example, "%x.yf" where: x=maximum number of places, y=y number of decimal places from the x number of places at the most.
If has the value 1, then the maximum number of decimal places is set to the TableFormat.
Example1:
The view format is a real number with the maximum number of decimal places of 2.
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oGraph = oTView.Trends("t1").GraphDefault;
var vTableFormat = oGraph.TableFormat;   // Reading from the property
// Writing into the property
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";
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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