ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Pivot Table functions
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
PVTListPositionHeader (Function)
In french: TCDListePositionEntête
Returns all values associated with a row or column header in a Pivot Table control.
Example
// Returns all countries displayed in the Pivot Table control
arrPos is array of pvtPosition
arrPos = PVTListPositionHeader(PVT_Statistics, COL_Country)
FOR EACH dim OF arrPos
// Displays the total for each country if > 10000
IF VAL_TO[dim] > 10000
Trace(dim.Country + ": " + VAL_TO[dim])
END
END
 
// Returns all cities displayed in the Pivot Table control
arrPos = PVTListPositionHeader(PVT_Statistics, COL_City)
FOR EACH dim OF arrPos
// Traces the French cities
IF (dim.Country ~= "FRANCE") THEN
Trace(dim.City)
END
END
Syntax
<Result> = PVTListPositionHeader(<Pivot Table control> , <Header>)
<Result>: Array of pvtPosition
Array of pvtPosition variable containing the list of elements corresponding to the specified header.
<Pivot Table control>: Control name
Name of the Pivot Table control to be used.
<Header>: Character string
Name of the row or column header for which the different elements must be listed. This header must be visible and it must be displayed in the control.
Remarks
In the result array:
  • The headers of parents are filled.
  • The headers of children or other axes have "*" for value (.Cumulated = True).
The same value can be returned several times with a different parent. For example, if we want to retrieve the list of vehicle models per country, the same model can be used in several countries.
Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/04/2023

Send a report | Local help