ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Calculated control
  • Overview of Calculated control
  • State field
  • Creating a calculated control
  • Important: Difference between calculation and calculation on break
  • Notes
  • Specific "Calculated" control: "Currency + Euro"
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview of Calculated control

State field

The "Calculated" control is used to perform calculations in a report. These calculations can be made:
  • on an item of the data source.
  • on a control found in the report.
  • programmatically.
Creating a calculated control
To create a "Calculated" control:
  1. On the "Creation" tab, in the "Text" group, click "Calculation".
  2. Click where you want to create the control.
  3. In the Calculated control creation wizard, specify:
    • whether the calculated control counts the records.
    • whether the calculated control performs a calculation on an item or control. In this case, select the type of calculation (sum, average, ...) and the source for calculation (control name or item name).
    • whether the calculated control displays a calculation performed programmatically. In the list, select the mask to use.
This information can be modified in the description window of the control ("Description" in the context menu).

Important: Difference between calculation and calculation on break

In the calculations on break, the control is reinitialized after each break.
Notes

Specific "Calculated" control: "Currency + Euro"

For a "Currency + Euro" Calculated control, you have the ability to manage:
  • stored currency: currency of data present in the report data source. If the control is handled through programming, the currency used for the value will be the stored currency.
  • currency displayed: currency used to display the value in the report. This currency can differ from the stored currency. The conversion is automatically performed.
  • double-display: two "Monetary + Euro" type fields can be linked together.. The value displayed in the base control is automatically converted in the tracker control.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help