Choose your database:
MS SQL Server
SQL Anywhere

Subscribe to our news:
Olivier Auverlot: "At my work (a universitary computer research laboratory), I'm alone to create all applications and databases. I don't know how I could do all the work without it. It's really a very productive software. I can focus on the database schemas and create quickly the user applications with a minimal amount of code to maintain".
Anley Lafleur: "I cannot wait to start using your exciting product and I am sure it will help me achieve my objectives".


Add your opinion

PostgreSQL PHP Generator online Help

Prev Return to chapter overview Next

Calculated Columns

Calculated (AKA computed, generated, or virtual) columns are columns that do not exist in the data source the page is based on and their values are automatically computed using other column values or another deterministic expression.  For example, you might create a string column that displays concatenated values from other fields, create an integer column to calculate the person age based on his birthday, and so on.


Creating calculated columns

To create a new calculated column, open Page Editor, right-click the grid at the Columns tab and choose Add calculated column... from the popup menu. The following window will be opened:



Provide the name, the data type and the caption for the new column and press OK. A new calculated column will be added to the column list. To quickly distinguish between ordinal and calculated fields, the latter are marked with a green calculator icon.


It is possible to add multiple calculated columns for a single page.


Dropping calculated columns

To drop an existing calculated column, select the column in the column list, right-click and choose Drop calculated column from the popup menu.


Compute column values

To compute column values in read-only views (List, Print, Export, etc) provide the OnCalculateFields server-side event handler. For Edit and Insert forms provide the OnCalculateControlValues client-side event handler.



Calculated columns cannot be used with Data Filtering and Multi-Edit tools, so the corresponding options in the column list are always disabled.

Prev Return to chapter overview Next