ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The TotalsEnabled property enables you to:
  • * Identify the calculation method used for columns in a Table or TreeView Table control (automatic or custom),
  • Temporarily forbid or force column calculations (automatic or custom) in a Table or TreeView Table control.
Remarks:
Example
TABLE_TABLE1.TotalsEnabled = False // no more calculated totals
FOR I = 1 TO 50
TableAdd(TABLE_TABLE1, MyCalculationRowContent(I))
Multitask(-1) // the table is redisplayed without totals
END
TABLE_TABLE1.TotalsEnabled = True
Trace(" Total = " + COL_TOTALCOL[rowTotal])
Syntax

Identifying the calculation method used for columns (automatic or custom) Hide the details

<Result> = <Control used>.TotalsEnabled
<Result>: Boolean
  • True if the column calculations (automatic or custom) are immediately performed,
  • False if the column calculations (automatic or custom) are not performed.
<Control used>: Control name
Name of Table or TreeView Table control containing the column calculations (automatic or custom).

Changing the calculation method used for columns (automatic or custom) Hide the details

<Control used>.TotalsEnabled = <New method>
<Control used>: Control name
Name of Table or TreeView Table control containing the column calculations (automatic or custom).
<New method>: Boolean
  • True to force the execution of column calculations (automatic or custom) in the control,
  • False not to perform the column calculations (automatic or custom).
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/24/2022

Send a report | Local help