@magic-xpa/engine 4.1000.0-dev4100.302 → 4.1000.0-dev4100.305

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.
@@ -20049,7 +20049,10 @@ class MgForm extends MgFormBase {
20049
20049
  }
20050
20050
  if (refreshType === Constants.TASK_REFRESH_CURR_REC && (!super.isLineMode() || this._tableRefreshed)) {
20051
20051
  this.FormRefreshed = true;
20052
- Commands.addNoParameters(CommandType.SET_WC_IDLE, this);
20052
+ if (this._task.isFirstRecordCycle() || AccessHelper.eventsManager.getIsInViewRefresh()) {
20053
+ Commands.addNoParameters(CommandType.SET_WC_IDLE, this);
20054
+ AccessHelper.eventsManager.setIsInViewRefresh(false);
20055
+ }
20053
20056
  }
20054
20057
  return true;
20055
20058
  }
@@ -25588,6 +25591,7 @@ class EventsManager {
25588
25591
  this.confirmationDialogTitle = 'Session is about to be terminated!';
25589
25592
  this._lastFailedFocusedControl = null;
25590
25593
  this.isSpinnerShown = false;
25594
+ this.isInViewRefresh = false;
25591
25595
  this.SpinnerStopped = new Subject();
25592
25596
  this._rtEvents = new Stack();
25593
25597
  this._eventsQueue = new MgPriorityBlockingQueue();
@@ -27748,6 +27752,7 @@ class EventsManager {
27748
27752
  await dv.currRecCompute(true);
27749
27753
  }
27750
27754
  await this.handleInternalEventWithTask(task, InternalInterface.MG_ACT_REC_PREFIX);
27755
+ this.setIsInViewRefresh(true);
27751
27756
  if (!this.GetStopExecutionFlag() && !task.getPreventControlChange()) {
27752
27757
  if (!(task === LastFocusedManager.Instance.getLastFocusedTask() || !task.pathContains(LastFocusedManager.Instance.getLastFocusedTask())))
27753
27758
  await this.handleInternalEventWithTask(task, InternalInterface.MG_ACT_REC_SUFFIX);
@@ -28476,6 +28481,12 @@ class EventsManager {
28476
28481
  return false;
28477
28482
  return true;
28478
28483
  }
28484
+ getIsInViewRefresh() {
28485
+ return this.isInViewRefresh;
28486
+ }
28487
+ setIsInViewRefresh(inViewRefresh) {
28488
+ this.isInViewRefresh = inViewRefresh;
28489
+ }
28479
28490
  }
28480
28491
  EventsManager.REAL_ONLY = true;
28481
28492
  EventsManager.MAX_OPER = 9999;
@@ -29520,7 +29531,7 @@ class CommandsTable {
29520
29531
  }
29521
29532
  }
29522
29533
 
29523
- let CurrentClientVersion = '4.1000.0-dev4100.302';
29534
+ let CurrentClientVersion = '4.1000.0-dev4100.305';
29524
29535
 
29525
29536
  class ClientManager {
29526
29537
  static get Instance() {