Commit 19904404 authored by Giannis Tsapelas's avatar Giannis Tsapelas
Browse files

when aggr wihout groupby, exclude dimensions

parent dd5f506c
......@@ -302,10 +302,11 @@ $(function () {
};
this.create_grouping_list();
var hasGroupingOrResolution = false;
if ((QueryToolbox.groupings.length > 0) || (QueryToolbox.temporal_resolution != '') || (QueryToolbox.spatial_resolution != '')) {
hasGroupingOrResolution = true;
}
var hasGrouping = false;
// if ((QueryToolbox.groupings.length > 0) || (QueryToolbox.temporal_resolution != '') || (QueryToolbox.spatial_resolution != '')) {
// hasGrouping = true;
// }
if ((QueryToolbox.groupings.length > 0)) {
hasGrouping = true;
}
......@@ -320,7 +321,6 @@ $(function () {
// "select" in "from" field of the document is the columns that will be selected from the table where the variable is
select: []
};
// push main variable - THE VARIABLES in the query document have as "type" the string "VALUE"
var groupBy = false;
$.each(QueryToolbox.groupings, function (_, elem) {
......@@ -402,6 +402,9 @@ $(function () {
if (groupBy)
exclude = false;
if (!hasGroupingOrResolution && (variable.aggregate !=''))
exclude = true;
var dimension = {
type: dim.id,
name: 'i' + String(idx) + '_' + name,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment