Flexmonster Software License Agreement (“Agreement”) has been significantly revised and is effective as of September 30, 2024.
The following modifications were made:
The modified version of Flexmonster Software License Agreement is available here.
Downloading, installing, and/or continuing to use Flexmonster Software after September 30, 2024, constitutes Licensee’s acceptance of the terms and conditions of the modified version of Flexmonster Software License Agreement. If Licensee does not agree to any of these terms and conditions, they must cease using Flexmonster Software and must not download, install, use, access, or continue to access Flexmonster Software. By continuing to use Flexmonster Software or renewing the license under License Model or Maintenance after the effective date of any modifications to Agreement, Licensee accepts and agrees to be bound by the terms and conditions of the modified Agreement.
Using the custom data source API allows you to decide which aggregations to enable in Flexmonster and support on the back end.
The supported aggregations can be defined in the aggregations property of the response to the /fields request. The aggregations supported by Flexmonster for the custom data source API connection are the following: "sum"
, "count"
, "distinctcount"
, "average"
, "median"
, "product"
, "min"
, "max"
, "stdevp"
, "stdevs"
, "none"
, or a custom aggregation.
It is possible to define which aggregations are available for which fields in the back end; it is also not necessary to implement all the aggregations supported by Flexmonter.
For the custom data source API, Flexmonster supports the following built-in front-end aggregations: "percent"
, "percentofcolumn"
, "percentofrow"
, "percentofparentcolumntotal"
, "percentofparentrowtotal"
, "index"
, "differenceofcolumn"
, "differenceofrow"
, "%differenceofcolumn"
, "%differenceofrow"
, "runningtotalsofcolumn"
, "runningtotalsofrow"
.
These aggregations will appear in Flexmonster Pivot automatically if at least one aggregation function is implemented on the back end (e.g., "sum"
).
Note This feature is available only for the fields of the "number"
type.
Besides aggregations supported by Flexmonster, you can implement a custom aggregation on your server. Define the custom aggregation (e.g., "squareroot"
) in the aggregations property of the response to the /fields request:
{ "aggregations": { "number": ["sum", "average", "squareroot"], … } }
Now the custom aggregation can be used on the client side. In the component, a measure with the custom aggregation applied will look similar to the following: Price (squareroot)
.
On the client side, you can customize the list of aggregations available for a specific field with the MappingObject. This object has the "aggregations"
property, which defines a list of available aggregations. That list can contain both the aggregations supported on the back end (including custom ones) and the built-in front-end aggregations.
To learn more about the "aggregations"
property, refer to the Mapping guide.
You may be interested in the following articles: