Parametrize Database

Предыдущая страницаВ началоСледующая страница

The values of cells in databases can be specified as variables and expressions with the help of the Parameterization support parameter. This parameter can be enabled when creating the database.

Databases15

The value of such a cell is recalculated when recalculating parametric model. When being displayed the value of the cell in the table, specified either as a variable or expression, is highlighted with bold font.

Databases16

When clicking the cell the expression appears instead of the value and it can be edited.

Databases17

Along with the functions for working  with databases, the value in a cell can depend on other cells.

In the given example the 6th row contains the sum of all five previous rows:

Databases18

Recursive specification of values is not allowed in this case. In case of appearance of the recursion the cell will be highlighted with red color. In this example this event can occur if the range of rows 1, 5 is removed:

Databases19

The message about recursion is also sent to the diagnostics window.  Cross-like specification of cell’s values from one table to another is also possible, but also without recursion.

A more detailed description of functions for working with ranges of cells is described in the Database Functions section.

To link the parameters of your drawing with an external database, use the functions for selecting values from external databases - dbf( , , ), dbfwin( , , ), mdb( , , , ).

To select values from an internal database or a database by reference, use the functions for selecting values from internal databases - rec( ), frec( , , , ), val( , ), find( , ).