Skip to content

Commit 36fadd7

Browse files
committed
Fixes grid columns not being set properly when the first query/find executed.
1 parent 9ac78e5 commit 36fadd7

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

widgets/AttributesTable/Table.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,22 @@ define([
112112
this.createGrid();
113113
this.setToolbarButtons();
114114

115+
var options = {
116+
queryOptions: this.queryOptions,
117+
findOptions: this.findOptions,
118+
gridOptions: this.gridOptions,
119+
featureOptions: this.featureOptions,
120+
symbolOptions: this.symbolOptions,
121+
toolbarOptions: this.toolbarOptions
122+
};
123+
115124
if (this.queryParameters && (this.queryParameters.url || this.queryParameters.layerID)) {
116125
this.own(aspect.after(this, 'startup', lang.hitch(this, function () {
117-
this.executeQueryTask();
126+
this.executeQueryTask(options);
118127
})));
119128
} else if (this.findOptions && this.findOptions.url) {
120129
this.own(aspect.after(this, 'startup', lang.hitch(this, function () {
121-
this.executeFindTask();
130+
this.executeFindTask(options);
122131
})));
123132
}
124133
},

widgets/AttributesTable/_FindTaskMixin.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ define([
3939
},
4040

4141
executeFindTask: function (options) {
42+
this.getConfiguration(options);
4243
if (this.executingQuery === true) {
4344
return;
4445
}

widgets/AttributesTable/_QueryTaskMixin.js

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ define([
114114
},
115115

116116
executeQueryTask: function (options) {
117+
this.getConfiguration(options);
117118
if (this.executingQuery === true) {
118119
return;
119120
}

0 commit comments

Comments
 (0)