@xuda.io/runtime-bundle 1.0.557 → 1.0.558

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.
@@ -28251,47 +28251,31 @@ func.UI.update_xu_ref = function (SESSION_ID, dsSessionP, ref_field_id, $elm) {
28251
28251
  let _ds_0 = _session.DS_GLB[0];
28252
28252
 
28253
28253
  const _ds = func.utils.clean_returned_datasource(SESSION_ID, dsSessionP);
28254
+ try {
28255
+ const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
28254
28256
 
28255
- const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
28257
+ let SYS_GLOBAL_OBJ_REFS = _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'];
28256
28258
 
28257
- let SYS_GLOBAL_OBJ_REFS = _ds_0.data_system['SYS_GLOBAL_OBJ_REFS'];
28259
+ let obj = { ds: _ds, data: _ds?.data_feed?.rows?.[row_idx] || {}, props: _ds.in_parameters || {} };
28258
28260
 
28259
- // if (!SYS_GLOBAL_OBJ_REFS[ref_field_id]) {
28260
- // SYS_GLOBAL_OBJ_REFS[ref_field_id] = {};
28261
- // }
28262
- // SYS_GLOBAL_OBJ_REFS[ref_field_id].ds = _ds;
28263
- // SYS_GLOBAL_OBJ_REFS[ref_field_id].data = _ds?.data_feed?.rows?.[row_idx] || {};
28264
- // SYS_GLOBAL_OBJ_REFS[ref_field_id].props = _ds.in_parameters || {};
28265
-
28266
- // if ($elm) {
28267
- // const attributes = $elm?.data()?.xuData?.xuPanelProps || $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
28268
- // SYS_GLOBAL_OBJ_REFS[ref_field_id].attributes = attributes;
28269
- // SYS_GLOBAL_OBJ_REFS[ref_field_id].xu_ui_id = $elm.attr('xu-ui-id');
28270
- // }
28271
-
28272
- let obj = { ds: _ds, data: _ds?.data_feed?.rows?.[row_idx] || {}, props: _ds.in_parameters || {} };
28273
-
28274
- if ($elm) {
28275
- const attributes = $elm?.data()?.xuData?.xuPanelProps || $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
28276
- obj.attributes = attributes;
28277
- obj.xu_ui_id = $elm.attr('xu-ui-id');
28278
- }
28261
+ if ($elm) {
28262
+ const attributes = $elm?.data()?.xuData?.xuPanelProps || $elm?.data()?.xuData?.debug_info?.attribute_stat || {};
28263
+ obj.attributes = attributes;
28264
+ obj.xu_ui_id = $elm.attr('xu-ui-id');
28265
+ }
28279
28266
 
28280
- if (!_.isEqual(SYS_GLOBAL_OBJ_REFS?.[ref_field_id] || {}, obj)) {
28281
- if (!SYS_GLOBAL_OBJ_REFS[ref_field_id]) {
28282
- SYS_GLOBAL_OBJ_REFS[ref_field_id] = {};
28267
+ if (!_.isEqual(SYS_GLOBAL_OBJ_REFS?.[ref_field_id] || {}, obj)) {
28268
+ if (!SYS_GLOBAL_OBJ_REFS[ref_field_id]) {
28269
+ SYS_GLOBAL_OBJ_REFS[ref_field_id] = {};
28270
+ }
28271
+ SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
28272
+ ret = true;
28283
28273
  }
28284
- SYS_GLOBAL_OBJ_REFS[ref_field_id] = obj;
28285
- ret = true;
28274
+ } catch (error) {
28275
+ // error normal if find_ROWID_idx fail
28286
28276
  }
28277
+
28287
28278
  return ret;
28288
- // func.datasource.update(SESSION_ID, {
28289
- // [0]: {
28290
- // ['datasource_main']: {
28291
- // 'data_system.SYS_GLOBAL_OBJ_REFS': { [`${ref_field_id}`]: obj },
28292
- // },
28293
- // },
28294
- // });
28295
28279
  };
28296
28280
 
28297
28281
  func.UI.find_field_in_progUi_attributes = function (progUi, field_id, prop, tag_name) {