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

when group by, keep only vars and group dims

parent 2787b838
......@@ -302,6 +302,14 @@ $(function () {
};
this.create_grouping_list();
var hasGrouping = false;
// if ((QueryToolbox.groupings.length > 0) || (QueryToolbox.temporal_resolution != '') || (QueryToolbox.spatial_resolution != '')) {
// hasGrouping = true;
// }
if ((QueryToolbox.groupings.length > 0)) {
hasGrouping = true;
}
// for each variable
$.each(QueryToolbox.variables, function(idx, variable) {
var _from = {
......@@ -388,6 +396,12 @@ $(function () {
}
}
var exclude = false;
if (hasGrouping)
exclude = true;
if (groupBy)
exclude = false;
var dimension = {
type: dim.id,
name: 'i' + String(idx) + '_' + name,
......@@ -395,7 +409,7 @@ $(function () {
datatype: dim.datatype,
groupBy: groupBy,
aggregate: dimAggregate,
exclude: false
exclude: exclude
};
// check if joined
if (idx > 0) {
......
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