@magic-xpa/engine 4.900.0-dev490.46 → 4.900.0-dev490.49

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.
@@ -20443,8 +20443,8 @@ class RemoteTaskService extends TaskServiceBase {
20443
20443
  OwnerTransactionTask = task.DataviewManager.RemoteDataviewManager.Transaction.OwnerTask;
20444
20444
  return OwnerTransactionTask;
20445
20445
  }
20446
- static PreparePropMainDisplay(task) {
20447
- task.ComputeMainDisplay();
20446
+ static async PreparePropMainDisplay(task) {
20447
+ await task.ComputeMainDisplay();
20448
20448
  return task.FormIsLegal() ? ReturnResult.SuccessfulResult : new ReturnResult(MsgInterface.BRKTAB_STR_ERR_FORM);
20449
20449
  }
20450
20450
  }
@@ -24655,16 +24655,16 @@ class Task extends TaskBase {
24655
24655
  }
24656
24656
  }
24657
24657
  }
24658
- ComputeMainDisplay() {
24658
+ async ComputeMainDisplay() {
24659
24659
  let propMainDisplay = this.getProp(PropInterface.PROP_TYPE_MAIN_DISPLAY);
24660
- let mainDisplayIndex = propMainDisplay.GetComputedValueInteger();
24660
+ let mainDisplayIndex = await propMainDisplay.getValueInt();
24661
24661
  mainDisplayIndex = this.GetRealMainDisplayIndexOnCurrentTask(mainDisplayIndex);
24662
24662
  this._forms.InitFormFromXmlString(mainDisplayIndex);
24663
24663
  this.EnsureValidForm();
24664
24664
  }
24665
24665
  async PrepareTaskForm() {
24666
24666
  await TaskServiceBase.PreparePropOpenTaskWindow(this);
24667
- return RemoteTaskService.PreparePropMainDisplay(this);
24667
+ return await RemoteTaskService.PreparePropMainDisplay(this);
24668
24668
  }
24669
24669
  FormIsLegal() {
24670
24670
  let isFormIsLegal = super.isMainProg();
@@ -26933,7 +26933,7 @@ class EventsManager {
26933
26933
  val = Manager.GetCtrlVal(ctrl);
26934
26934
  task.CurrentEditingControl = null;
26935
26935
  if (!task.cancelWasRaised() &&
26936
- (ctrl.Type !== MgControlType.CTRL_TYPE_BROWSER && (!isNullOrUndefined(ctrl._field) && ctrl._field.getType() === StorageAttribute.DATE || val !== null) && typeof val != 'undefined' &&
26936
+ (ctrl.Type !== MgControlType.CTRL_TYPE_BROWSER && (!isNullOrUndefined(ctrl._field) && (ctrl._field.getType() === StorageAttribute.DATE || ctrl._field.getType() == StorageAttribute.NUMERIC) || val !== null) && typeof val != 'undefined' &&
26937
26937
  !await ctrl.validateAndSetValue(val, true))) {
26938
26938
  this.setStopExecution(true);
26939
26939
  return false;
@@ -29525,7 +29525,7 @@ class CommandsTable {
29525
29525
  }
29526
29526
  }
29527
29527
 
29528
- let CurrentClientVersion = '4.900.0-dev490.46';
29528
+ let CurrentClientVersion = '4.900.0-dev490.49';
29529
29529
 
29530
29530
  class ClientManager {
29531
29531
  constructor() {