@xuda.io/runtime-bundle 1.0.389 → 1.0.391

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.
@@ -3518,15 +3518,16 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3518
3518
  _ds.data_feed.rows[row_idx][field_id] = value;
3519
3519
  await set_fieldComputed_dependencies(dataSource, field_id, null);
3520
3520
 
3521
- // // search the field in refs
3522
- // let _ds_0 = _session.DS_GLB[0];
3523
- // for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
3524
- // if (val.ds.dsSession == dataSource) {
3525
- // if (!fields_changed.includes(ref_name)) {
3526
- // fields_changed.push(ref_name);
3527
- // }
3528
- // }
3529
- // }
3521
+ // search the field in refs
3522
+ let _ds_0 = _session.DS_GLB[0];
3523
+ for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
3524
+ if (val.ds.dsSession == dataSource) {
3525
+ func.UI.update_xu_ref(SESSION_ID, dataSource);
3526
+ // if (!fields_changed.includes(ref_name)) {
3527
+ // fields_changed.push(ref_name);
3528
+ // }
3529
+ }
3530
+ }
3530
3531
 
3531
3532
  if (!update_local_scope_only) {
3532
3533
  let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
@@ -3518,15 +3518,16 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3518
3518
  _ds.data_feed.rows[row_idx][field_id] = value;
3519
3519
  await set_fieldComputed_dependencies(dataSource, field_id, null);
3520
3520
 
3521
- // // search the field in refs
3522
- // let _ds_0 = _session.DS_GLB[0];
3523
- // for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
3524
- // if (val.ds.dsSession == dataSource) {
3525
- // if (!fields_changed.includes(ref_name)) {
3526
- // fields_changed.push(ref_name);
3527
- // }
3528
- // }
3529
- // }
3521
+ // search the field in refs
3522
+ let _ds_0 = _session.DS_GLB[0];
3523
+ for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
3524
+ if (val.ds.dsSession == dataSource) {
3525
+ func.UI.update_xu_ref(SESSION_ID, dataSource);
3526
+ // if (!fields_changed.includes(ref_name)) {
3527
+ // fields_changed.push(ref_name);
3528
+ // }
3529
+ }
3530
+ }
3530
3531
 
3531
3532
  if (!update_local_scope_only) {
3532
3533
  let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);