@xuda.io/runtime-bundle 1.0.512 → 1.0.514

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.
@@ -25742,20 +25742,24 @@ func.utils.ws_worker.functions = {
25742
25742
  args.run_atP,
25743
25743
  args.worker_id,
25744
25744
  );
25745
- let _ds = _session.DS_GLB[ret.dsSessionP];
25746
- if (show_log) console.log('DATASOURCE EXECUTION DONE ' + ret.dsSessionP + ' ' + _ds?.tree_obj?.menuName || '' + ' SESSION_ID: ' + SESSION_ID, APP_OBJ[_session.app_id].app_name);
25747
- var obj = func.utils.clean_returned_datasource(SESSION_ID, ret?.dsSessionP);
25748
- obj.dataSourceSessionGlobal = _session.dataSourceSessionGlobal;
25745
+ try {
25746
+ let _ds = _session.DS_GLB[ret.dsSessionP];
25747
+ if (show_log) console.log('DATASOURCE EXECUTION DONE ' + ret.dsSessionP + ' ' + _ds?.tree_obj?.menuName || '' + ' SESSION_ID: ' + SESSION_ID, APP_OBJ[_session.app_id].app_name);
25748
+ var obj = func.utils.clean_returned_datasource(SESSION_ID, ret?.dsSessionP);
25749
+ obj.dataSourceSessionGlobal = _session.dataSourceSessionGlobal;
25749
25750
 
25750
- worker_post_message({
25751
- promise_queue_id,
25752
- params: obj,
25753
- worker_id: ws_worker_id,
25754
- session_id: SESSION_ID,
25755
- process_pid: params.process_pid,
25756
- service: params.service,
25757
- });
25758
- _ds.stat = 'idle';
25751
+ worker_post_message({
25752
+ promise_queue_id,
25753
+ params: obj,
25754
+ worker_id: ws_worker_id,
25755
+ session_id: SESSION_ID,
25756
+ process_pid: params.process_pid,
25757
+ service: params.service,
25758
+ });
25759
+ _ds.stat = 'idle';
25760
+ } catch (error) {
25761
+ debugger;
25762
+ }
25759
25763
  },
25760
25764
  datasource_delete: function (params, promise_queue_id) {
25761
25765
  var SESSION_ID = params.session_id;
@@ -32256,6 +32260,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32256
32260
  let ret_panel = await func.UI.screen.init(SESSION_ID, prog_id, paramsP.screenId, _ds, $elm, null, _ds.currentRecordId, null, true, param_obj, 'initXu_panel', undefined, refreshed_ds);
32257
32261
  ret = { $new_div: ret_panel };
32258
32262
  $container.data().xuData.xuPanelProps = $elm.data().xuAttributes;
32263
+ $container.data().xuData.xuPanelData = ret_panel.data();
32259
32264
  return ret;
32260
32265
  }
32261
32266
 
@@ -32330,7 +32335,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32330
32335
  return ret;
32331
32336
  },
32332
32337
  'xu-ref': async function ($elm, val) {
32333
- let ret = await common_fx['xu-ref']($container, val);
32338
+ let ret = await common_fx['xu-ref']($container, val, $elm.xuPanelData.xuData.paramsP.dsSession);
32334
32339
  return ret;
32335
32340
  },
32336
32341
  },
@@ -32390,8 +32395,8 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
32390
32395
  };
32391
32396
 
32392
32397
  const common_fx = {
32393
- 'xu-ref': async function ($elm, val) {
32394
- func.UI.update_xu_ref(SESSION_ID, paramsP.dsSessionP, val.value, $elm);
32398
+ 'xu-ref': async function ($elm, val, dsSession) {
32399
+ func.UI.update_xu_ref(SESSION_ID, dsSession || paramsP.dsSessionP, val.value, $elm);
32395
32400
 
32396
32401
  // Select the node that will be observed for mutations
32397
32402
  const targetNode = $elm[0];