@xuda.io/runtime-bundle 1.0.300 → 1.0.302
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/js/xuda-runtime-bundle.js +14 -11
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-mini-bundle.js +1 -1
- package/js/xuda-runtime-mini-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +14 -11
- package/js/xuda-runtime-slim.min.es.js +14 -11
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +14 -11
- package/js/xuda-worker-bundle.js +14 -11
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -3619,18 +3619,21 @@ func.datasource.callback = async function (SESSION_ID, dsSessionP, rowIdP, jobNo
|
|
|
3619
3619
|
} catch (err) {
|
|
3620
3620
|
// console.error(err);
|
|
3621
3621
|
}
|
|
3622
|
+
const datasetOutputField = ds?.progDataSource?.datasetOutputField;
|
|
3623
|
+
if (datasetOutputField) {
|
|
3624
|
+
let ret_get_value = await func.datasource.get_value(SESSION_ID, datasetOutputField, _ds.dsSession);
|
|
3625
|
+
if (ret_get_value.found) {
|
|
3626
|
+
let datasource_changes = {};
|
|
3622
3627
|
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
}
|
|
3629
|
-
if (!datasource_changes[_ds.dsSession][_ds.currentRecordId]) {
|
|
3630
|
-
datasource_changes[_ds.dsSession][_ds.currentRecordId] = {};
|
|
3628
|
+
if (!datasource_changes[ret_get_value.dsSessionP]) {
|
|
3629
|
+
datasource_changes[ret_get_value.dsSessionP] = {};
|
|
3630
|
+
}
|
|
3631
|
+
if (!datasource_changes[ret_get_value.dsSessionP][ret_get_value.currentRecordId]) {
|
|
3632
|
+
datasource_changes[ret_get_value.dsSessionP][ret_get_value.currentRecordId] = {};
|
|
3631
3633
|
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
+
datasource_changes[ret_get_value.dsSessionP][ret_get_value.currentRecordId][_ds?.progDataSource?.datasetOutputField] = _ds?.data_feed?.rows || [];
|
|
3635
|
+
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
3636
|
+
}
|
|
3634
3637
|
}
|
|
3635
3638
|
}
|
|
3636
3639
|
|
|
@@ -4955,7 +4958,7 @@ func.utils.ws_worker.functions = {
|
|
|
4955
4958
|
);
|
|
4956
4959
|
|
|
4957
4960
|
if (show_log) console.log('DATASOURCE EXECUTION DONE ' + ret.dsSessionP + ' ' + _session.DS_GLB[ret.dsSessionP]?.tree_obj?.menuName || '' + ' SESSION_ID: ' + SESSION_ID, APP_OBJ[_session.app_id].app_name);
|
|
4958
|
-
var obj = func.utils.clean_returned_datasource(SESSION_ID, ret?.dsSessionP
|
|
4961
|
+
var obj = func.utils.clean_returned_datasource(SESSION_ID, ret?.dsSessionP);
|
|
4959
4962
|
obj.dataSourceSessionGlobal = _session.dataSourceSessionGlobal;
|
|
4960
4963
|
|
|
4961
4964
|
worker_post_message({
|
package/js/xuda-worker-bundle.js
CHANGED
|
@@ -3619,18 +3619,21 @@ func.datasource.callback = async function (SESSION_ID, dsSessionP, rowIdP, jobNo
|
|
|
3619
3619
|
} catch (err) {
|
|
3620
3620
|
// console.error(err);
|
|
3621
3621
|
}
|
|
3622
|
+
const datasetOutputField = ds?.progDataSource?.datasetOutputField;
|
|
3623
|
+
if (datasetOutputField) {
|
|
3624
|
+
let ret_get_value = await func.datasource.get_value(SESSION_ID, datasetOutputField, _ds.dsSession);
|
|
3625
|
+
if (ret_get_value.found) {
|
|
3626
|
+
let datasource_changes = {};
|
|
3622
3627
|
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
}
|
|
3629
|
-
if (!datasource_changes[_ds.dsSession][_ds.currentRecordId]) {
|
|
3630
|
-
datasource_changes[_ds.dsSession][_ds.currentRecordId] = {};
|
|
3628
|
+
if (!datasource_changes[ret_get_value.dsSessionP]) {
|
|
3629
|
+
datasource_changes[ret_get_value.dsSessionP] = {};
|
|
3630
|
+
}
|
|
3631
|
+
if (!datasource_changes[ret_get_value.dsSessionP][ret_get_value.currentRecordId]) {
|
|
3632
|
+
datasource_changes[ret_get_value.dsSessionP][ret_get_value.currentRecordId] = {};
|
|
3631
3633
|
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
+
datasource_changes[ret_get_value.dsSessionP][ret_get_value.currentRecordId][_ds?.progDataSource?.datasetOutputField] = _ds?.data_feed?.rows || [];
|
|
3635
|
+
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
3636
|
+
}
|
|
3634
3637
|
}
|
|
3635
3638
|
}
|
|
3636
3639
|
|
|
@@ -4955,7 +4958,7 @@ func.utils.ws_worker.functions = {
|
|
|
4955
4958
|
);
|
|
4956
4959
|
|
|
4957
4960
|
if (show_log) console.log('DATASOURCE EXECUTION DONE ' + ret.dsSessionP + ' ' + _session.DS_GLB[ret.dsSessionP]?.tree_obj?.menuName || '' + ' SESSION_ID: ' + SESSION_ID, APP_OBJ[_session.app_id].app_name);
|
|
4958
|
-
var obj = func.utils.clean_returned_datasource(SESSION_ID, ret?.dsSessionP
|
|
4961
|
+
var obj = func.utils.clean_returned_datasource(SESSION_ID, ret?.dsSessionP);
|
|
4959
4962
|
obj.dataSourceSessionGlobal = _session.dataSourceSessionGlobal;
|
|
4960
4963
|
|
|
4961
4964
|
worker_post_message({
|