@magic-xpa/engine 4.800.0-dev480.217 → 4.800.0-dev480.219

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.
@@ -4550,6 +4550,9 @@ class ExecOperCommand extends ClientOriginatedCommandTaskTag {
4550
4550
  ' in ' + '[' + this.Operation.getEventHandler().getEventHandlerInfo() + ']' +
4551
4551
  ' on ' + '[' + this.Operation.Task.getTaskInfo() + ']';
4552
4552
  }
4553
+ getTask() {
4554
+ return this.Operation.Task;
4555
+ }
4553
4556
  }
4554
4557
 
4555
4558
  class Scrambler {
@@ -5814,7 +5817,7 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
5814
5817
  if (cmdsToServer.getCmd(i) instanceof ExecOperCommand) {
5815
5818
  let operCmd = currMGData.CmdsToServer.getCmd(i);
5816
5819
  this._requestInfo.serverCallAt = operCmd.getCommandInfo();
5817
- this._requestInfo.runtimeTaskTree = this.GetTaskTree(operCmd.Operation.Task);
5820
+ this._requestInfo.runtimeTaskTree = this.GetTaskTree(operCmd.getTask());
5818
5821
  operExecution = true;
5819
5822
  break;
5820
5823
  }
@@ -8475,6 +8478,19 @@ class ContextTimeoutResetCommand extends EventCommand {
8475
8478
  }
8476
8479
  }
8477
8480
 
8481
+ class SelectProgramCommand extends ExecOperCommand {
8482
+ getCommandInfo() {
8483
+ let eventsManager = AccessHelper.eventsManager;
8484
+ let rtEvt = eventsManager.getLastRtEvent();
8485
+ return 'Select Program ' + 'on Control ' + rtEvt.Control.Name;
8486
+ }
8487
+ getTask() {
8488
+ let eventsManager = AccessHelper.eventsManager;
8489
+ let rtEvt = eventsManager.getLastRtEvent();
8490
+ return rtEvt.getTask();
8491
+ }
8492
+ }
8493
+
8478
8494
  class CommandFactory {
8479
8495
  static CreateEventCommand(taskTag, magicEvent) {
8480
8496
  let eventCommand = new EventCommand(magicEvent);
@@ -8692,6 +8708,19 @@ class CommandFactory {
8692
8708
  cmd.Val = value;
8693
8709
  return cmd;
8694
8710
  }
8711
+ static CreateSelectProgramCommand(taskTag, handlerId, operIdx, ditIdx, value) {
8712
+ let execOperCommand = new SelectProgramCommand();
8713
+ execOperCommand.OperIdx = operIdx;
8714
+ execOperCommand.TaskTag = taskTag;
8715
+ execOperCommand.HandlerId = handlerId;
8716
+ execOperCommand.DitIdx = ditIdx;
8717
+ let cmd = execOperCommand;
8718
+ if (value !== null && value.length === 0)
8719
+ cmd.Val = " ";
8720
+ else
8721
+ cmd.Val = value;
8722
+ return cmd;
8723
+ }
8695
8724
  static CreateEvaluateCommand(taskTag, expType, expIdx, expValLen, mprgCreator) {
8696
8725
  let evaluateCommand = new EvaluateCommand();
8697
8726
  evaluateCommand.TaskTag = taskTag;
@@ -28374,7 +28403,7 @@ class EventsManager {
28374
28403
  mgVal = yield ctrl.getMgValue(value);
28375
28404
  var rec = task.DataView.getCurrRec();
28376
28405
  encodedVal = rec.getXMLForValue(ctrl.getField().getId(), mgVal);
28377
- cmd = CommandFactory.CreateExecOperCommand(task.getTaskTag(), null, Int32.MinValue, ctrl.getDitIdx(), encodedVal);
28406
+ cmd = CommandFactory.CreateSelectProgramCommand(task.getTaskTag(), null, Int32.MinValue, ctrl.getDitIdx(), encodedVal);
28378
28407
  task.getMGData().CmdsToServer.Add(cmd);
28379
28408
  let commandsProcessorServer = CommandsProcessorManager.GetCommandsProcessor();
28380
28409
  yield commandsProcessorServer.Execute(CommandsProcessorBase_SendingInstruction.TASKS_AND_COMMANDS);
@@ -31049,7 +31078,7 @@ class CommandsTable {
31049
31078
  }
31050
31079
  }
31051
31080
 
31052
- let CurrentClientVersion = '4.800.0-dev480.217';
31081
+ let CurrentClientVersion = '4.800.0-dev480.219';
31053
31082
 
31054
31083
  class ClientManager {
31055
31084
  constructor() {
@@ -31513,5 +31542,5 @@ class Process {
31513
31542
  }
31514
31543
  }
31515
31544
 
31516
- export { AbortCommand, AccessHelper, ActionManager, AddLocateCommand, AddRangeCommand, AddSortCommand, AddUserLocateDataViewCommand, AddUserLocateRemoteDataViewCommand, AddUserRangeDataviewCommand, AddUserRangeRemoteDataViewCommand, AddUserSortDataViewCommand, AddUserSortRemoteDataViewCommand, Argument, ArgumentsList, Boundary, BrowserEscEventCommand, ClientManager, ClientOriginatedCommand, ClientOriginatedCommandSerializer, ClientOriginatedCommandTaskTag, ClientRefreshCommand, ClientTargetedCommandBase, ClientTargetedCommandType, ColumnSortEventCommand, CommandFactory, CommandSerializationHelper, CommandsProcessorBase, CommandsProcessorBase_SendingInstruction, CommandsProcessorBase_SessionStage, CommandsProcessorManager, CommandsTable, CompMainPrgTable, ComputeEventCommand, ConstInterface, ConstUtils, ContextTerminationEventCommand, ContextTimeoutResetCommand, ControlItemsRefreshCommand, CookieService, CreatedFormVector, CurrentClientVersion, DataSourceIdKey, DataView, DataViewBase, DataViewCommandBase, DataViewCommandType, DataViewOutputCommand, DataviewCommand, DataviewHeaderBase, DataviewHeaderFactory, DataviewHeaders, DataviewHeadersSaxHandler, DataviewManager, DataviewManagerBase, DcValuesReference, DummyDataViewCommand, DvCache, EnhancedVerifyCommand, EnvParamsTable, Environment, EnvironmentDetails, EvaluateCommand, Event, EventCommand, EventHandler, EventHandlerPosition, EventSubType, EventsAllowedType, EventsManager, ExecOperCommand, ExecutionStack, ExecutionStackEntry, ExpDesc, ExpStrTracker, ExpTable, Expression, ExpressionDict, ExpressionEvaluator, ExpressionLocalJpn, Expression_ReturnValue, FetchDataControlValuesEventCommand, Field, FieldBase, FieldsTable as FieldsTableExt, FlowMonitorInterface, FlowMonitorQueue, FormsTable, GUIManager, GlobalCommandsManager, GlobalParams, GlobalParamsQueryCommand, GuiEventsProcessor, HandlersTable, HeapSort, HttpClientAsync, HttpClientBase, HttpClientEvents, HttpClientSync, HttpManager, HttpUtility, IClientTargetedCommand, IndexChangeEventCommand, IniputForceWriteCommand, InteractiveCommunicationsFailureHandler, Key, LanguageData, LastFocusedManager, MGData, MGDataCollection, MagicBridge, MenusDeserializer, MgControl, MgForm, MgPriorityBlockingQueue, MgPriorityQueue, MirrorExpVal, MirrorPrmMap, MirrorString, NonReversibleExitEventCommand, NullValueException, OpenURLCommand, OpeningTaskDetails, Operation, OperationTable, ParamParseResult, PrmMap, Process, QueryCommand, RCTimer, Recompute, RecomputeCommand, RecomputeTable, Recompute_RcmpBy, Record, RecordOutOfDataViewException, RecordOutOfDataViewException_ExceptionType, RecordsTable, RefreshEventCommand, RefreshScreenEventCommand, RemoteCommandsProcessor, RemoteControlItemsRefreshCommand, RemoteDataViewCommandBase, RemoteDataViewCommandFactory, RemoteDataViewCommandUpdateNonModifiable, RemoteDataviewHeader, RemoteDataviewManager, RemoteTaskService, RequestMethod, ResetLocateCommand, ResetRangeCommand, ResetSortCommand, ResetUserLocateRemoteDataviewCommand, ResetUserRangeRemoteDataviewCommand, ResetUserSortRemoteDataviewCommand, ResultCommand, ResultValue, RetVals, ReturnResult, ReturnResultBase, RollbackEventCommand, RollbackEventCommand_RollbackType, RunTimeEvent, RunTimeEventBase, SET_DISPLAYLINE_BY_DV, Scrambler, ServerConfig, ServerError, SetTransactionStateDataviewCommand, SetTransactionStateRemoteDataViewCommand, Sort, SortCollection, SubformOpenEventCommand, SubformRefreshEventCommand, TableCache, TableCacheManager, Task, TaskBase, TaskServiceBase, TaskTransactionManager, Task_Direction, Task_Flow, Task_SubformExecModeEnum, TasksTable, Transaction, TransactionCommand, UniqueIDUtils, UnloadCommand, UserDetails, UserEventsTable, UserRange, VerifyCommand, WriteMessageToServerLogCommand, XMLBasedCommandBuilder, XMLBasedDcValuesBuilder, YesNoExp, getGuiEventObj };
31545
+ export { AbortCommand, AccessHelper, ActionManager, AddLocateCommand, AddRangeCommand, AddSortCommand, AddUserLocateDataViewCommand, AddUserLocateRemoteDataViewCommand, AddUserRangeDataviewCommand, AddUserRangeRemoteDataViewCommand, AddUserSortDataViewCommand, AddUserSortRemoteDataViewCommand, Argument, ArgumentsList, Boundary, BrowserEscEventCommand, ClientManager, ClientOriginatedCommand, ClientOriginatedCommandSerializer, ClientOriginatedCommandTaskTag, ClientRefreshCommand, ClientTargetedCommandBase, ClientTargetedCommandType, ColumnSortEventCommand, CommandFactory, CommandSerializationHelper, CommandsProcessorBase, CommandsProcessorBase_SendingInstruction, CommandsProcessorBase_SessionStage, CommandsProcessorManager, CommandsTable, CompMainPrgTable, ComputeEventCommand, ConstInterface, ConstUtils, ContextTerminationEventCommand, ContextTimeoutResetCommand, ControlItemsRefreshCommand, CookieService, CreatedFormVector, CurrentClientVersion, DataSourceIdKey, DataView, DataViewBase, DataViewCommandBase, DataViewCommandType, DataViewOutputCommand, DataviewCommand, DataviewHeaderBase, DataviewHeaderFactory, DataviewHeaders, DataviewHeadersSaxHandler, DataviewManager, DataviewManagerBase, DcValuesReference, DummyDataViewCommand, DvCache, EnhancedVerifyCommand, EnvParamsTable, Environment, EnvironmentDetails, EvaluateCommand, Event, EventCommand, EventHandler, EventHandlerPosition, EventSubType, EventsAllowedType, EventsManager, ExecOperCommand, ExecutionStack, ExecutionStackEntry, ExpDesc, ExpStrTracker, ExpTable, Expression, ExpressionDict, ExpressionEvaluator, ExpressionLocalJpn, Expression_ReturnValue, FetchDataControlValuesEventCommand, Field, FieldBase, FieldsTable as FieldsTableExt, FlowMonitorInterface, FlowMonitorQueue, FormsTable, GUIManager, GlobalCommandsManager, GlobalParams, GlobalParamsQueryCommand, GuiEventsProcessor, HandlersTable, HeapSort, HttpClientAsync, HttpClientBase, HttpClientEvents, HttpClientSync, HttpManager, HttpUtility, IClientTargetedCommand, IndexChangeEventCommand, IniputForceWriteCommand, InteractiveCommunicationsFailureHandler, Key, LanguageData, LastFocusedManager, MGData, MGDataCollection, MagicBridge, MenusDeserializer, MgControl, MgForm, MgPriorityBlockingQueue, MgPriorityQueue, MirrorExpVal, MirrorPrmMap, MirrorString, NonReversibleExitEventCommand, NullValueException, OpenURLCommand, OpeningTaskDetails, Operation, OperationTable, ParamParseResult, PrmMap, Process, QueryCommand, RCTimer, Recompute, RecomputeCommand, RecomputeTable, Recompute_RcmpBy, Record, RecordOutOfDataViewException, RecordOutOfDataViewException_ExceptionType, RecordsTable, RefreshEventCommand, RefreshScreenEventCommand, RemoteCommandsProcessor, RemoteControlItemsRefreshCommand, RemoteDataViewCommandBase, RemoteDataViewCommandFactory, RemoteDataViewCommandUpdateNonModifiable, RemoteDataviewHeader, RemoteDataviewManager, RemoteTaskService, RequestMethod, ResetLocateCommand, ResetRangeCommand, ResetSortCommand, ResetUserLocateRemoteDataviewCommand, ResetUserRangeRemoteDataviewCommand, ResetUserSortRemoteDataviewCommand, ResultCommand, ResultValue, RetVals, ReturnResult, ReturnResultBase, RollbackEventCommand, RollbackEventCommand_RollbackType, RunTimeEvent, RunTimeEventBase, SET_DISPLAYLINE_BY_DV, Scrambler, SelectProgramCommand, ServerConfig, ServerError, SetTransactionStateDataviewCommand, SetTransactionStateRemoteDataViewCommand, Sort, SortCollection, SubformOpenEventCommand, SubformRefreshEventCommand, TableCache, TableCacheManager, Task, TaskBase, TaskServiceBase, TaskTransactionManager, Task_Direction, Task_Flow, Task_SubformExecModeEnum, TasksTable, Transaction, TransactionCommand, UniqueIDUtils, UnloadCommand, UserDetails, UserEventsTable, UserRange, VerifyCommand, WriteMessageToServerLogCommand, XMLBasedCommandBuilder, XMLBasedDcValuesBuilder, YesNoExp, getGuiEventObj };
31517
31546
  //# sourceMappingURL=magic-xpa-engine.js.map