@xuda.io/runtime-bundle 1.0.353 → 1.0.355

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,6 +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.dsSession == dataSource) {
3525
+ if (!fields_changed.includes(ref_name)) {
3526
+ fields_changed.push(ref_name);
3527
+ }
3528
+ }
3529
+ }
3530
+
3521
3531
  if (!update_local_scope_only) {
3522
3532
  let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
3523
3533
  if (glb.IS_WORKER) {
@@ -3589,8 +3599,8 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3589
3599
  }
3590
3600
  ///// REFRESH SCREEN
3591
3601
  if (!avoid_refresh && fields_changed.length) {
3592
- // await removed from the below function cause to dead lock Mar 3 25
3593
3602
  await func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
3603
+ // await removed from the below function cause to dead lock Mar 3 25
3594
3604
  func.UI.screen.refresh_screen(
3595
3605
  SESSION_ID,
3596
3606
  fields_changed,
@@ -3518,6 +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.dsSession == dataSource) {
3525
+ if (!fields_changed.includes(ref_name)) {
3526
+ fields_changed.push(ref_name);
3527
+ }
3528
+ }
3529
+ }
3530
+
3521
3531
  if (!update_local_scope_only) {
3522
3532
  let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
3523
3533
  if (glb.IS_WORKER) {
@@ -3589,8 +3599,8 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3589
3599
  }
3590
3600
  ///// REFRESH SCREEN
3591
3601
  if (!avoid_refresh && fields_changed.length) {
3592
- // await removed from the below function cause to dead lock Mar 3 25
3593
3602
  await func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
3603
+ // await removed from the below function cause to dead lock Mar 3 25
3594
3604
  func.UI.screen.refresh_screen(
3595
3605
  SESSION_ID,
3596
3606
  fields_changed,