@xuda.io/runtime-bundle 1.0.390 → 1.0.392

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.
@@ -28222,7 +28222,7 @@ func.UI.refs_garbage_collector = function (SESSION_ID = Object.keys(SESSION_OBJ)
28222
28222
  }
28223
28223
  };
28224
28224
 
28225
- func.UI.update_xu_ref = function (SESSION_ID, dsSessionP) {
28225
+ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
28226
28226
  const _session = SESSION_OBJ[SESSION_ID];
28227
28227
  let _ds_0 = _session.DS_GLB[0];
28228
28228
 
@@ -28231,11 +28231,21 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP) {
28231
28231
  const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
28232
28232
  const data = _ds?.data_feed?.rows?.[row_idx] || {};
28233
28233
 
28234
- const props = _ds.in_parameters || {};
28235
- const attributes = $elm?.data()?.xuData?.properties || {};
28236
- const xu_ui_id = $elm.attr('xu-ui-id');
28234
+ let SYS_GLOBAL_OBJ_REFS = _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][ref_field_id];
28237
28235
 
28238
- _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'][val.value] = { ds: _ds, data, attributes, props, xu_ui_id };
28236
+ if (!SYS_GLOBAL_OBJ_REFS) {
28237
+ SYS_GLOBAL_OBJ_REFS = { ds: _ds, data };
28238
+ } else {
28239
+ SYS_GLOBAL_OBJ_REFS.ds = _ds;
28240
+ SYS_GLOBAL_OBJ_REFS.data = data;
28241
+
28242
+ if ($elm) {
28243
+ // const props = _ds.in_parameters || {};
28244
+ // const attributes = $elm?.data()?.xuData?.properties || {};
28245
+
28246
+ SYS_GLOBAL_OBJ_REFS.xu_ui_id = $elm.attr('xu-ui-id');
28247
+ }
28248
+ }
28239
28249
  };
28240
28250
  func.datasource = {};
28241
28251
  func.datasource.create = async function (
@@ -31978,7 +31988,7 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
31978
31988
 
31979
31989
  const common_fx = {
31980
31990
  'xu-ref': async function ($elm, val) {
31981
- func.UI.update_xu_ref(SESSION_ID, paramsP.dsSessionP);
31991
+ func.UI.update_xu_ref(SESSION_ID, paramsP.dsSessionP, $elm);
31982
31992
  // const _session = SESSION_OBJ[SESSION_ID];
31983
31993
  // let _ds_0 = _session.DS_GLB[0];
31984
31994