From d5802efd2e64edb06030d423868b00b4f830da1c Mon Sep 17 00:00:00 2001 From: Hyyan Abo Fakher Date: Tue, 2 Jul 2019 10:58:39 +0200 Subject: [PATCH] feat: add method `method public void setColumnAggFunc(BBjString field! , BBjString AggFunc!)` --- BBjGridExWidget.bbj | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/BBjGridExWidget.bbj b/BBjGridExWidget.bbj index a3176c72..2fd011ce 100644 --- a/BBjGridExWidget.bbj +++ b/BBjGridExWidget.bbj @@ -1295,6 +1295,17 @@ class public BBjGridExWidget extends BBjWidget implements BBjGridExWidgetColumns FI methodend rem /** + rem * Set an aggregation function for the passed column field + rem * + rem * @param BBjString field! The column's field + rem * @param BBjString AggFunc! Name of function to use for aggregation. One of [sum,min,max,first,last]. + rem */ + method public void setColumnAggFunc(BBjString field! , BBjString AggFunc!) + if(#hasColumn(field!)) then + #getColumn(field!).setAggFunc(AggFunc!) + FI + methodend + rem /** rem * Enable row grouping for columns.
rem * rem * Note This method can update row grouping for columns after/before the grid is rendered