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
The PersistedCalculatedItem property is used to:
  • Find out whether the value of a calculated item is stored in the data file. This item was defined in the data model editor or programmatically.
  • Define whether the value of a calculated item is stored in the data file (when describing the item through programming).
Note: The calculated fields correspond to the "Formula" fields in the data model editor..
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

Find out whether the value of a calculated item is stored in the data file Hide the details

<Result> = <Data file>.<Item>.PersistedCalculatedItem
<Result>: Boolean
  • True if the value of the calculated item is stored in the data file.
  • False if the value of the item is recalculated at each reading.
<Data file>: Name of data file
Name of the data file used.
<Item>: Item name
Name of item used.
WEBDEV - Server codeAjax

Indicating whether the value of a calculated item must be stored in the data file Hide the details

<Item>.PersistedCalculatedItem = <Value>
<Item>: Item name
Name of the item used. This name is defined with the Item Description type.
<Value>: Boolean
  • True if the value of the calculated item must be stored in the data file.
  • False if the value of the item must be recalculated at each read operation.
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