@xuda.io/xuda-worker-bundle-min 1.3.1903 → 1.3.1905
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.
- package/index.js +9 -28
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4086,7 +4086,7 @@ func.datasource.update_changes_for_out_parameter = async function (SESSION_ID, d
|
|
|
4086
4086
|
let _session = SESSION_OBJ[SESSION_ID];
|
|
4087
4087
|
let _ds = _session.DS_GLB[dsSessionP];
|
|
4088
4088
|
const _calling_ds = _session.DS_GLB[calling_dsP];
|
|
4089
|
-
|
|
4089
|
+
|
|
4090
4090
|
if (_ds.PARAM_OUT_INFO) {
|
|
4091
4091
|
let data = {};
|
|
4092
4092
|
for await (const [key, val] of Object.entries(_ds.PARAM_OUT_INFO)) {
|
|
@@ -7050,10 +7050,9 @@ func.events.execute = async function (
|
|
|
7050
7050
|
return;
|
|
7051
7051
|
}
|
|
7052
7052
|
|
|
7053
|
-
// args.prog_id = _viewId;
|
|
7054
7053
|
if (_ds) {
|
|
7055
7054
|
func.utils.debug.watch(SESSION_ID, calling_trigger_prop?.id, functionP, null, calling_trigger_prop, expCond);
|
|
7056
|
-
|
|
7055
|
+
|
|
7057
7056
|
const ret = await func.datasource.create(SESSION_ID, await get_prog_id(), args.dataSourceNoP, args.parentDataSourceNoP, args.containerIdP, args.rowIdP, args.jobNoP, args.calling_trigger_prop, null, null, args.callingSourceP, args.calling_jobP, args.screen_dsP, args.is_panelP, params_obj);
|
|
7058
7057
|
|
|
7059
7058
|
let _ds_new = _session.DS_GLB[ret.dsSessionP];
|
|
@@ -7061,31 +7060,6 @@ func.events.execute = async function (
|
|
|
7061
7060
|
if (parameters && !_.isEmpty(parameters)) {
|
|
7062
7061
|
await func.datasource.update_changes_for_out_parameter(SESSION_ID, _ds_new.dsSession, _ds.dsSession);
|
|
7063
7062
|
}
|
|
7064
|
-
// if (parameters && !_.isEmpty(parameters) && _ds_new.PARAM_OUT_INFO) {
|
|
7065
|
-
// let data = {};
|
|
7066
|
-
// for await (const [key, val] of Object.entries(
|
|
7067
|
-
// _ds_new.PARAM_OUT_INFO
|
|
7068
|
-
// )) {
|
|
7069
|
-
// if (val.prop === "out") {
|
|
7070
|
-
// try {
|
|
7071
|
-
// const row_idx = func.common.find_ROWID_idx(
|
|
7072
|
-
// _ds_new,
|
|
7073
|
-
// _ds_new.currentRecordId
|
|
7074
|
-
// );
|
|
7075
|
-
// data[val.details] =
|
|
7076
|
-
// _ds_new.data_feed.rows[row_idx][val.fieldId];
|
|
7077
|
-
// } catch (err) {
|
|
7078
|
-
// console.error(err);
|
|
7079
|
-
// }
|
|
7080
|
-
// }
|
|
7081
|
-
// }
|
|
7082
|
-
// if (!_.isEmpty(data)) {
|
|
7083
|
-
// let datasource_changes = {
|
|
7084
|
-
// [_ds.dsSession]: { [_ds.currentRecordId]: data },
|
|
7085
|
-
// };
|
|
7086
|
-
// await func.datasource.update(SESSION_ID, datasource_changes);
|
|
7087
|
-
// }
|
|
7088
|
-
// }
|
|
7089
7063
|
|
|
7090
7064
|
func.events.delete_job(SESSION_ID, jobNoP);
|
|
7091
7065
|
return _ds_new;
|
|
@@ -7140,6 +7114,13 @@ func.events.execute = async function (
|
|
|
7140
7114
|
}
|
|
7141
7115
|
|
|
7142
7116
|
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
7117
|
+
|
|
7118
|
+
if (_ds.PARAM_OUT_INFO) {
|
|
7119
|
+
for await (const [dsSession_to_update, val] of Object.entries(datasource_changes)) {
|
|
7120
|
+
await func.datasource.update_changes_for_out_parameter(SESSION_ID, _ds.dsSession, dsSession_to_update);
|
|
7121
|
+
}
|
|
7122
|
+
}
|
|
7123
|
+
|
|
7143
7124
|
if (jobNoP) func.events.delete_job(SESSION_ID, jobNoP);
|
|
7144
7125
|
// return changes;
|
|
7145
7126
|
},
|