Hello Isomorphic,
I just read the ServerSummaries docs because I wanted to apply a "DISTINCT" to a field I am counting.
I noticed this part:
which solves the problem for me with customSelectExpression="DISTINCT x" (thanks again for the framework, impressive!).
But this only works as I'm never using this DataSource in a non-aggregating manner.
Therefore, an enhancement for the SummaryFunctionType enum would be the following values: COUNTDISTINCT (and SUMDISTINCT, AVGDISTINCT), which would allow a normal use of the DSField as well.
Best regards
Blama
PS: Regarding the SummaryFunctionType-docs: In the "Enum Constant Summary"-table, for some values details are given, for some not. Below in "Enum Constant Detail" everything becomes clear (e.g. MULTIPLIER handling in server).
I just read the ServerSummaries docs because I wanted to apply a "DISTINCT" to a field I am counting.
I noticed this part:
Fields with customSelectExpression
Fields with customSelectExpression can be used with server summaries as both groupBy fields or fields with summaryFunction. In case of summaryFunction requested on field with customSelectExpression we will wrap SQL function around the expression, which may or may not be correct.
Fields with customSelectExpression can be used with server summaries as both groupBy fields or fields with summaryFunction. In case of summaryFunction requested on field with customSelectExpression we will wrap SQL function around the expression, which may or may not be correct.
But this only works as I'm never using this DataSource in a non-aggregating manner.
Therefore, an enhancement for the SummaryFunctionType enum would be the following values: COUNTDISTINCT (and SUMDISTINCT, AVGDISTINCT), which would allow a normal use of the DSField as well.
Best regards
Blama
PS: Regarding the SummaryFunctionType-docs: In the "Enum Constant Summary"-table, for some values details are given, for some not. Below in "Enum Constant Detail" everything becomes clear (e.g. MULTIPLIER handling in server).
Comment