AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades HFSQL
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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).
Conectores Nativos This property is available for the Native MySQL Connector.
Ejemplo
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)
Sintaxis

Finding out the SQL expression defining the value of a calculated item Ocultar los detalles

<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.
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadIOS WidgetMac CatalystCódigo de Usuario (UMC)Ajax

Defining the SQL expression that returns the value of a calculated item Ocultar los detalles

<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.
Observaciones
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.
Versión mínima requerida
  • Versión 21
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 13/05/2025

Señalar un error o enviar una sugerencia | Ayuda local