@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.
@@ -5099,15 +5099,6 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
5099
5099
  }
5100
5100
  };
5101
5101
 
5102
- const update_xu_ref = async function () {
5103
- let _ds_0 = _session.DS_GLB[0];
5104
- for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
5105
- if (val.ds.dsSession == dataSource) {
5106
- func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
5107
- }
5108
- }
5109
- };
5110
-
5111
5102
  var fields_changed = [];
5112
5103
  var datasource_changed = [];
5113
5104
  let client_datasource_changes = {};
@@ -5118,6 +5109,16 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
5118
5109
  if (!_ds) {
5119
5110
  continue;
5120
5111
  }
5112
+
5113
+ const update_xu_ref = async function () {
5114
+ let _ds_0 = _session.DS_GLB[0];
5115
+ for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
5116
+ if (val.ds.dsSession == dataSource) {
5117
+ func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
5118
+ }
5119
+ }
5120
+ };
5121
+
5121
5122
  // iterate changes records
5122
5123
  for (const [record_id, fields_data] of Object.entries(row_data)) {
5123
5124
  // iterate changes fields
@@ -11399,7 +11400,7 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
11399
11400
  // console.log("***");
11400
11401
  func.UI.utils.indicator.screen.busy();
11401
11402
 
11402
- 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);
11403
+ 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);
11403
11404
 
11404
11405
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[ret.dsSessionP];
11405
11406
  _ds.screen_params = params;
@@ -5100,15 +5100,6 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
5100
5100
  }
5101
5101
  };
5102
5102
 
5103
- const update_xu_ref = async function () {
5104
- let _ds_0 = _session.DS_GLB[0];
5105
- for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
5106
- if (val.ds.dsSession == dataSource) {
5107
- func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
5108
- }
5109
- }
5110
- };
5111
-
5112
5103
  var fields_changed = [];
5113
5104
  var datasource_changed = [];
5114
5105
  let client_datasource_changes = {};
@@ -5119,6 +5110,16 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
5119
5110
  if (!_ds) {
5120
5111
  continue;
5121
5112
  }
5113
+
5114
+ const update_xu_ref = async function () {
5115
+ let _ds_0 = _session.DS_GLB[0];
5116
+ for ([ref_name, val] of Object.entries(_ds_0.data_system['SYS_GLOBAL_OBJ_REFS'])) {
5117
+ if (val.ds.dsSession == dataSource) {
5118
+ func.UI.update_xu_ref(SESSION_ID, dataSource, ref_name);
5119
+ }
5120
+ }
5121
+ };
5122
+
5122
5123
  // iterate changes records
5123
5124
  for (const [record_id, fields_data] of Object.entries(row_data)) {
5124
5125
  // iterate changes fields
@@ -9359,7 +9360,7 @@ func.UI.screen.init = async function (SESSION_ID, prog_id, sourceScreenP, callin
9359
9360
  // console.log("***");
9360
9361
  func.UI.utils.indicator.screen.busy();
9361
9362
 
9362
- 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);
9363
+ 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);
9363
9364
 
9364
9365
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[ret.dsSessionP];
9365
9366
  _ds.screen_params = params;