Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Enhancement: Declarative COUNT (DISTINCT x) in OperationBinding's summaryFunctions

$
0
0
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:
Quote:

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.
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).

Viewing all articles
Browse latest Browse all 4756

Trending Articles