@xuda.io/runtime-bundle 1.0.482 → 1.0.483

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.
@@ -30183,6 +30183,15 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
30183
30183
  }
30184
30184
  };
30185
30185
 
30186
+ const update_xu_ref = async function () {
30187
+ let _ds_0 = _session.DS_GLB[0];
30188
+ for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
30189
+ if (val.ds.dsSession == dataSource) {
30190
+ func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
30191
+ }
30192
+ }
30193
+ };
30194
+
30186
30195
  var fields_changed = [];
30187
30196
  var datasource_changed = [];
30188
30197
  let client_datasource_changes = {};
@@ -30200,6 +30209,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
30200
30209
  // mechanism to make update directly on the datasource object
30201
30210
  if (record_id === 'datasource_main') {
30202
30211
  _.set(_ds, field_id, value);
30212
+ update_xu_ref();
30203
30213
  continue;
30204
30214
  }
30205
30215
 
@@ -30217,15 +30227,16 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
30217
30227
  await set_fieldComputed_dependencies(dataSource, field_id, null);
30218
30228
 
30219
30229
  // search the field in refs
30220
- let _ds_0 = _session.DS_GLB[0];
30221
- for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
30222
- if (val.ds.dsSession == dataSource) {
30223
- func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
30224
- // if (!fields_changed.includes(ref_name)) {
30225
- // fields_changed.push(ref_name);
30226
- // }
30227
- }
30228
- }
30230
+ update_xu_ref();
30231
+ // let _ds_0 = _session.DS_GLB[0];
30232
+ // for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
30233
+ // if (val.ds.dsSession == dataSource) {
30234
+ // func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
30235
+ // // if (!fields_changed.includes(ref_name)) {
30236
+ // // fields_changed.push(ref_name);
30237
+ // // }
30238
+ // }
30239
+ // }
30229
30240
 
30230
30241
  if (!update_local_scope_only) {
30231
30242
  let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);