@wavemaker/app-ng-runtime 11.4.0-next.140425 → 11.4.0-next.140972

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -460,6 +460,7 @@
460
460
  _this.rowDef = {};
461
461
  _this.rowInstance = {};
462
462
  _this.fullFieldDefs = [];
463
+ _this.variableInflight = true;
463
464
  _this.applyProps = new Map();
464
465
  _this.redraw = _.debounce(_this._redraw, 150);
465
466
  _this.debouncedHandleLoading = _.debounce(_this.handleLoading, 350);
@@ -1160,6 +1161,10 @@
1160
1161
  set: function (newValue) {
1161
1162
  var _a;
1162
1163
  this.isDataLoading = false;
1164
+ // Fix for [WMS-24012]: hide no datafound msg when variableInflight is true and dataset is empty
1165
+ if (this.variableInflight && _.isEmpty(newValue)) {
1166
+ return;
1167
+ }
1163
1168
  this.variableInflight = false;
1164
1169
  if (this.gridOptions.isNavTypeScrollOrOndemand()) {
1165
1170
  // update the _gridData field with the next set of items and modify the current page
@@ -1639,6 +1644,10 @@
1639
1644
  };
1640
1645
  TableComponent.prototype.setGridData = function (serverData) {
1641
1646
  var data = this.filternullrecords ? this.removeEmptyRecords(serverData) : serverData;
1647
+ // fix for [WMS-24012] set variableinflight flag to false for static variables
1648
+ if (_.get(this.datasource, 'category') === 'wm.Variable') {
1649
+ this.variableInflight = false;
1650
+ }
1642
1651
  if (!this.variableInflight) {
1643
1652
  if (data && (data.length) === 0) {
1644
1653
  this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
@@ -1961,10 +1970,8 @@
1961
1970
  this.variableInflight = false;
1962
1971
  this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
1963
1972
  }
1964
- if (this.dataset) {
1965
- this.watchVariableDataSet(this.dataset);
1966
- this.onDataSourceChange();
1967
- }
1973
+ this.watchVariableDataSet(this.dataset);
1974
+ this.onDataSourceChange();
1968
1975
  break;
1969
1976
  case 'dataset':
1970
1977
  if (this.gridOptions.isNavTypeScrollOrOndemand() && this.gridOptions.getCurrentPage() === 1) {