@wavemaker/app-ng-runtime 11.4.2-rc.5384 → 11.4.2-rc.5385

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.
@@ -1504,6 +1504,10 @@
1504
1504
  }
1505
1505
  else {
1506
1506
  this.resetPageNavigation();
1507
+ // If the dataset is undefined or empty or table is bound to static variable then set variableInflight to false inorder to update the status
1508
+ if (newVal === '' || newVal === undefined || _.get(this.datasource, 'category') === 'wm.Variable') {
1509
+ this.variableInflight = false;
1510
+ }
1507
1511
  /*for run mode, disabling the loader and showing no data found message if dataset is not valid*/
1508
1512
  if (!this.variableInflight) {
1509
1513
  this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
@@ -1652,7 +1656,8 @@
1652
1656
  TableComponent.prototype.setGridData = function (serverData) {
1653
1657
  var data = this.filternullrecords ? this.removeEmptyRecords(serverData) : serverData;
1654
1658
  // fix for [WMS-24012] set variableinflight flag to false for static variables
1655
- if (_.get(this.datasource, 'category') === 'wm.Variable') {
1659
+ // If the table is bound to some widget and not bound to any variable (ex: Table1.selectedItem) then set variableInflight to false
1660
+ if (_.get(this.datasource, 'category') === 'wm.Variable' || _.get(this.datasource, 'category') === undefined) {
1656
1661
  this.variableInflight = false;
1657
1662
  }
1658
1663
  if (!this.variableInflight) {