Font Size:
Ask Joget AI

Aggregate Datalist Binder Plugin

Introduction

The Aggregate Datalist Binder plugin is a datalist data source that turns a form's records into a summary report. Instead of one row per record, the list shows one row per group, with totals, averages, counts, minimums and maximums worked out by the database.

You build the report in the List Builder as usual. Each form field comes with five extra columns: (SUM), (AVG), (COUNT), (MIN) and (MAX). Add an aggregate column to calculate it, and add a plain field column to group by it. For example, a form with Name and Age fields, listed with Name and Age (SUM), shows one row per name with the total of their ages.

In the List Builder, the plugin appears as the Aggregated Form Data Binder (MySQL) data source. It works on Joget DX 8 and DX 9 with a MySQL database.

Get started

Where to get the plugin

You can download the Aggregate Datalist Binder plugin from the Joget Marketplace.

How to install

  1. Go to the Joget Marketplace and download the plugin as a .jar file.
  2. Log in as an admin on your Joget server.
  3. Go to Admin Bar > Settings > Manage Plugins.
  4. Click the Upload Plugins button.
  5. Upload the .jar file you downloaded.

The Joget Knowledge Base has more information on managing and developing plugins.

How to use it

This example uses the sample app's form, which has two fields: Name and Age. Several records share the same name.

  1. In the App Composer, create a new list.
  2. In the List Builder, open the Data tab. In Select Source of Data, pick Aggregated Form Data Binder (MySQL), then click Next.
  3. In Form, pick the form to summarise.
  4. Open the Design tab. Under Columns / Filters, each field is listed with its aggregate columns, for example Age (AVG) and Age (SUM).
  5. Drag Name onto the list. This is the column the records are grouped by.
  6. Drag Age (AVG), Age (COUNT), Age (MAX), Age (MIN) and Age (SUM) onto the list.
  7. Save the list, add it to a UI with a List menu, and open it. Each name has one row, with the average, count, maximum, minimum and sum of its ages.

Configure the binder

Fields to configure, on the Configure Form page of the Data tab:

  • Form: The form whose records are summarised. Only forms in the current app are listed (mandatory).
  • Extra Filter Condition: An SQL condition that limits which records are included, applied before they are grouped. Write it as you would after WHERE in MySQL. Form fields are stored in columns named c_ followed by the field ID, for example c_name = 'Josh' or c_age > 18.

Columns

The plugin offers these columns in the List Builder:

Column What it shows
Field label, for example Name The field's value. The list is grouped by every column of this kind on it.
Field label (SUM) The total of the field's values in each group.
Field label (AVG) The average of the field's values in each group.
Field label (COUNT) The number of records in each group that have a value in the field.
Field label (MIN) and (MAX) The smallest and largest of the field's values in each group.

How the grouping works

Every column on the list that isn't an aggregate column is used to group the records. Add only the columns you want to group by:

  • Name with Age (SUM): one row per name.
  • Name and Age with Age (COUNT): one row per name and age, with how many records have that combination.
Note:
Don't add ID, Date Created or Date Modified to an aggregated list. Every record has its own value in them, so each record becomes its own group and nothing is summarised.

Filters and sorting

  • Filters: Add filters to the columns you group by. A filter limits the records before they are grouped, so filtering Name to Josh shows only Josh's row, with totals from Josh's records. Filters on aggregate columns aren't supported.
  • Sorting: The list can be sorted by any of its columns, including aggregate ones, for example by Age (SUM) to rank the groups by their totals.

Tips and limitations

  • MySQL only: The plugin reads the form's table in Joget's own database, which must be MySQL.
  • Numbers only for aggregates: Values are converted to numbers before they are calculated. (SUM), (MIN) and (MAX) show two decimal places, for example 86.00, and (AVG) shows six, for example 21.500000. Use aggregate columns on number fields. On text or date fields, such as Name (SUM), the results aren't meaningful.
  • At least one grouping column: The list needs at least one column that isn't an aggregate column, such as Name. A list with aggregate columns only shows no data.
  • One row is a group, not a record: Row actions and links that open a record don't apply, because a row doesn't stand for a single record.
  • The COUNT(*) column: Use a field's (COUNT) column to count records instead.

Download plugin

Download sample app

Download the demo app for Aggregate Datalist Binder:
Created by Miao Xuan Ng Last modified by Miao Xuan Ng on Nov 26, 2026