ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
CalculatedItemExpression (Property)
In french: FormuleRubriqueCalculée
ODBCOLE DBNot available with these kinds of connection
The CalculatedItemExpression property is used to:
  • Find out the SQL expression that defines the value of an expression item (or calculated item). This item was defined in the data model editor or programmatically.
  • Define the SQL expression that gives the value of an expression item (when describing the item through programming).
Native Connectors (Native Accesses) This property is available for the Native MySQL Connector.
Example
AFile is File Description
AnItem is Item Description
AnItem.Name = "CmdDate"
AnItem.CalculatedItemExpression = "'Written by ' + CURRENT_USER + ' on ' + SYSDATE"
AnItem.PersistedCalculatedItem = True
HDescribeItem(AFile, AnItem)
Syntax

Finding out the SQL expression defining the value of a calculated item Hide the details

<Résultat> = <Fichier de données>.<Rubrique>.CalculatedItemExpression
<Result>: Character string
SQL expression defining the value of the item.
<Data file used>: Name of data file
Name of the data file used.
<Item used>: Item name
Name of item used.
WEBDEV - Server codeAjax

Defining the SQL expression that returns the value of a calculated item Hide the details

<Item used>.CalculatedItemExpression = <SQL expression>
<Item used>: Item name
Name of the item used. This name is defined with the Item Description type.
<SQL expression>: Character string
SQL expression defining the value of the item.
Remarks
An expression item (or a calculated item) is an item whose content is calculated according to the associated SQL expression and to the values of items in the current record. For more details, see Analysis editor: the different types of sections.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/08/2025

Send a report | Local help