Add an Entry to a Data Grid

Each cell in a Data Grid contains an expression that calculates its value. As such, the entries in a Data Grid are configuration, as opposed to data, even if the expression is just a literal (fixed) value.

Within each cell you can specify a simple expression that just maps a property of an item in the database, or just contains a constant. Alternatively, you can specify more complex expressions that make use of a range of operators and functions. For details about configuring such expressions, see Welcome to the Guide to Expressions in the Geo SCADA Expert Guide to Expressions, and see Data Grid Expressions in the Geo SCADA Expert Guide to Expressions.

When defining any type of expression in a Data Grid’s cell, ensure that the expression calculates a value that is compatible with the type of field to which the cell belongs (see Specify the Field Properties). (If an expression does not evaluate to the same type as the field, Geo SCADA Expert will attempt to coerce the value to the correct type. For instance, it will convert the string ‘123’ to the number 123. If such a conversion is unsuccessful or not possible—for instance, it cannot convert the string ‘abc’ to a number—Geo SCADA Expert generates a diagnostic message when the table is queried.)

The Data Grid Editor contains features to allow you to build various expressions.

To include plain text in a Data Grid cell, enter the text in single quotes, for example ‘This is plain text’.

To view an expression if it overruns the visible area of a Data Grid cell, place the cursor over the cell—the full cell content is displayed in a ToolTip.

To replace the whole expression in a Data Grid cell, you can choose to:

To build up a more complex expression, you can:


Disclaimer

Geo SCADA Expert 2022