Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5027

Is SQL aggregation supported? SUM() COUNT() etc

$
0
0

@viraf Ahhh, now I see the issue. The API requires that fields be specifically be defined for security reasons and thus can not be "virtually defined" per request. What you need to do is declare "amt" to be a virtual field (see wiki and Schema tab on Admin application) and set the DB function to SUM(Amount) and be sure to select the "Aggregate function" checkbox. Then leave off the filter in your request, but include the fields=amt to just return back the aggregates.


Viewing all articles
Browse latest Browse all 5027

Trending Articles