@xuda.io/runtime-bundle 1.0.483 → 1.0.485

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,15 +30183,6 @@ 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
-
30195
30186
  var fields_changed = [];
30196
30187
  var datasource_changed = [];
30197
30188
  let client_datasource_changes = {};
@@ -30202,6 +30193,16 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
30202
30193
  if (!_ds) {
30203
30194
  continue;
30204
30195
  }
30196
+
30197
+ const update_xu_ref = async function () {
30198
+ let _ds_0 = _session.DS_GLB[0];
30199
+ for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
30200
+ if (val.ds.dsSession == dataSource) {
30201
+ func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
30202
+ }
30203
+ }
30204
+ };
30205
+
30205
30206
  // iterate changes records
30206
30207
  for (const [record_id, fields_data] of Object.entries(row_data)) {
30207
30208
  // iterate changes fields
@@ -31318,7 +31319,7 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
31318
31319
  // console.log("***");
31319
31320
  func.UI.utils.indicator.screen.busy();
31320
31321
 
31321
- const ret = await func.datasource.create(SESSION_ID, prog_id, null, params.parentDataSourceNoP, $rootFrame.attr('id'), rowIdP, jobNoP, null, null, null, null, null, null, null, parameters_obj_inP);
31322
+ const ret = await func.datasource.create(SESSION_ID, prog_id, params?.callingDataSource_objP?.dsSession, params.parentDataSourceNoP, $rootFrame.attr('id'), rowIdP, jobNoP, null, null, null, null, null, null, null, parameters_obj_inP);
31322
31323
 
31323
31324
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[ret.dsSessionP];
31324
31325
  _ds.screen_params = params;