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 / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
El Acumulado Property se utiliza para determinar si el valor de una columna o fila en control Tabla dinámica corresponde a un total (total al final de un fila o columna). Esta propiedad sólo puede ser usada en la pantalla Process de una célula.
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
Cabecera Fila o cabecera de columna en un control Tabla dinámica.
Observaciones
También puede averiguar si el valor de una fila o columna de una control Tabla dinámica corresponde a un total verificando el valor de la fila o columna.
Para un total:
  • el valor de la fila o columna 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: 27/05/2022

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