@wavemaker/app-ng-runtime 11.4.2-rc.5383 → 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.
@@ -1175,6 +1175,10 @@ class TableComponent extends StylableComponent {
1175
1175
  }
1176
1176
  else {
1177
1177
  this.resetPageNavigation();
1178
+ // If the dataset is undefined or empty or table is bound to static variable then set variableInflight to false inorder to update the status
1179
+ if (newVal === '' || newVal === undefined || _.get(this.datasource, 'category') === 'wm.Variable') {
1180
+ this.variableInflight = false;
1181
+ }
1178
1182
  /*for run mode, disabling the loader and showing no data found message if dataset is not valid*/
1179
1183
  if (!this.variableInflight) {
1180
1184
  this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
@@ -1319,7 +1323,8 @@ class TableComponent extends StylableComponent {
1319
1323
  setGridData(serverData) {
1320
1324
  const data = this.filternullrecords ? this.removeEmptyRecords(serverData) : serverData;
1321
1325
  // fix for [WMS-24012] set variableinflight flag to false for static variables
1322
- if (_.get(this.datasource, 'category') === 'wm.Variable') {
1326
+ // If the table is bound to some widget and not bound to any variable (ex: Table1.selectedItem) then set variableInflight to false
1327
+ if (_.get(this.datasource, 'category') === 'wm.Variable' || _.get(this.datasource, 'category') === undefined) {
1323
1328
  this.variableInflight = false;
1324
1329
  }
1325
1330
  if (!this.variableInflight) {