AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
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
La propiedad Cumulated permite saber si el valor de una columna o fila de un control Tabla dinámica corresponde a un total (total al final de una fila o columna). Esta propiedad solo puede utilizarse en el proceso de visualización de una celda.
Ejemplo
// Display code of a cell in a Pivot Table control
 
IF COL_OrderDate_Year.Cumulated = True OR COL_Country.Cumulated = True THEN
fntFont is Font
// We are positioned on a total row/column
fntFont.Name = "Trebuchet MS"
fntFont.Size = 8
fntFont.Color = Black
fntFont.Bold = True
fntFont.Italic = True
 
// Changes the background color of totals
VAL_TO.BackgroundColor = YellowToolhelp
VAL_Qty.BackgroundColor = YellowToolhelp
 
// Changes the font
VAL_TO.Font = fntFont
VAL_Qty.Font = fntFont
ELSE
IF VAL_TO <= 500 _AND_ VAL_TO > 0 THEN
VAL_TO.BackgroundColor = PastelRed
END
IF VAL_TO >= 30000  THEN
VAL_TO.BackgroundColor = PastelGreen
END
END
Sintaxis
<Result> = <Row or column header>.Cumulated
<Result>: Booleano
  • True si la columna o fila corresponde a un total,
  • False en caso contrario.
<Row or column header>: Nombre del control
Encabezado de la fila o columna de un control Tabla dinámica.
Observaciones
También puede verificar si el valor de una fila o columna de un control Tabla dinámica corresponde a un total probando el valor de la fila o columna.
Para un total:
  • el valor de la columna o fila corresponde a "*".
  • la propiedad Cumulated se establece en True.
// Display code of a cell in a Pivot Table control
 
IF COL_OrderDate_Year.Cumulated = "*" OR COL_Country.Cumulated = "*" THEN
fntFont is Font
// We are positioned on a total row/column
fntFont.Name = "Trebuchet MS"
fntFont.Size = 8
fntFont.Color = Black
fntFont.Bold = True
fntFont.Italic = True
 
// Changes the background color of totals
VAL_TO.BackgroundColor = YellowToolhelp
VAL_Qty.BackgroundColor = YellowToolhelp
 
// Changes the font
VAL_TO.Font = fntFont
VAL_Qty.Font = fntFont
ELSE
IF VAL_TO <= 500 _AND_ VAL_TO > 0 THEN
VAL_TO.BackgroundColor = PastelRed
END
IF VAL_TO >= 30000  THEN
VAL_TO.BackgroundColor = PastelGreen
END
END
Versión mínima requerida
  • Versión 18
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 17/10/2024

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