PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • Filter procedure
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..FilterProcedure is used to find out and modify the procedure that will be called to filter on a row or column header when calculating a pivot table.
Example
// Calculate the content of a pivot table
// for the stores whose group matches <"MyFilterProc">
// from January 1st, 2012
PVT_Statistics1.COL_InvoiceDate..MinValue = "20120101"
PVT_Statistics1.COL_StoreGroup..FilterProcedure = "MyFilterProc"
PVTCalculateAll(PVT_Statistics)

PROCEDURE MyFilterProc(sGroupName is string)
// Ignore the stores found in the "TEST" group
IF sGroupName = "TEST" THEN RESULT False
// Take all the other ones
RESULT True
Syntax

Finding out the name of filter procedure Hide the details

<Result> = <Header to Filter>..FilterProcedure
<Result>: Character string
Name of WLanguage procedure used for the filter.
<Header to Filter>: Character string (with or without quotes)
Name of row or column header found in the filtered Pivot Table control.

Modifying the filter procedure associated with the header Hide the details

<Header to Filter>..FilterProcedure = <New Procedure>
<Header to Filter>: Character string (with or without quotes)
Name of row header or column header found in the filtered pivot table.
<New Procedure>: Character string
  • Name of WLanguage procedure used for the filter.
  • Empty string to disable the filter.
Remarks

Filter procedure

The filter procedure is used to choose the values that will be taken into account when calculating the Pivot Table control during the call to PVTCalculateAll and PVTCalculateUpdate.
The procedure takes in parameter the value of the key for the row header or column header for which it was defined.
This procedure must return:
  • True to accept the value
  • False to refuse it: the value will not be taken into account in the Pivot Table control.
This procedure is mainly used to speed up the calculation of the pivot table by reducing the volume to process.
Caution: Do not confuse with PVTFilter that applies to the calculated result and that gives a different vision of the result displayed.
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment