AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Tabla dinámica
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns all values associated with a row or column header in a Pivot Table control.
Ejemplo
// 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_CA[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
Sintaxis
<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.
Observaciones
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.
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 19
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local