@xuda.io/runtime-bundle 1.0.770 → 1.0.772

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.
@@ -2533,7 +2533,7 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
2533
2533
  clearInterval(interval);
2534
2534
  resolve(job_num);
2535
2535
  }
2536
- if (i > 50) {
2536
+ if (i > 200) {
2537
2537
  console.error('deadlock detected');
2538
2538
  clearInterval(interval);
2539
2539
  resolve(job_num);
@@ -3115,7 +3115,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
3115
3115
  perform_delete();
3116
3116
  };
3117
3117
 
3118
- func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_refresh) {
3118
+ func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh) {
3119
3119
  return new Promise(async (resolve, reject) => {
3120
3120
  var _session = SESSION_OBJ[SESSION_ID];
3121
3121
 
@@ -3319,8 +3319,8 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3319
3319
  });
3320
3320
  }
3321
3321
  ///// REFRESH SCREEN
3322
- if (!avoid_refresh && fields_changed.length) {
3323
- await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed));
3322
+ if (fields_changed.length) {
3323
+ await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, null, avoid_xu_for_refresh);
3324
3324
  // await removed from the below function cause to dead lock Mar 3 25
3325
3325
  await func.UI.screen.refresh_screen(
3326
3326
  SESSION_ID,
@@ -2533,7 +2533,7 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
2533
2533
  clearInterval(interval);
2534
2534
  resolve(job_num);
2535
2535
  }
2536
- if (i > 50) {
2536
+ if (i > 200) {
2537
2537
  console.error('deadlock detected');
2538
2538
  clearInterval(interval);
2539
2539
  resolve(job_num);
@@ -3115,7 +3115,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
3115
3115
  perform_delete();
3116
3116
  };
3117
3117
 
3118
- func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_refresh) {
3118
+ func.datasource.update = async function (SESSION_ID, datasource_changes, update_local_scope_only, avoid_xu_for_refresh) {
3119
3119
  return new Promise(async (resolve, reject) => {
3120
3120
  var _session = SESSION_OBJ[SESSION_ID];
3121
3121
 
@@ -3319,8 +3319,8 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3319
3319
  });
3320
3320
  }
3321
3321
  ///// REFRESH SCREEN
3322
- if (!avoid_refresh && fields_changed.length) {
3323
- await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed));
3322
+ if (fields_changed.length) {
3323
+ await func.UI.screen.refresh_xu_attributes(SESSION_ID, _.cloneDeep(fields_changed), null, null, null, avoid_xu_for_refresh);
3324
3324
  // await removed from the below function cause to dead lock Mar 3 25
3325
3325
  await func.UI.screen.refresh_screen(
3326
3326
  SESSION_ID,