@xuda.io/xuda-worker-bundle-min 1.3.703 → 1.3.704
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 +15 -10
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2024,7 +2024,7 @@ func.datasource.execute = async function (
|
|
|
2024
2024
|
dataSourceSession,
|
|
2025
2025
|
IS_DATASOURCE_REFRESH
|
|
2026
2026
|
) {
|
|
2027
|
-
var _session = SESSION_OBJ[SESSION_ID]
|
|
2027
|
+
var _session = SESSION_OBJ[SESSION_ID];
|
|
2028
2028
|
var _ds = _session.DS_GLB[dataSourceSession];
|
|
2029
2029
|
var args = _ds.args;
|
|
2030
2030
|
// var v = _ds.v;
|
|
@@ -2114,9 +2114,12 @@ func.datasource.execute = async function (
|
|
|
2114
2114
|
// ======================================
|
|
2115
2115
|
// COMPUTE GLOBALS
|
|
2116
2116
|
// ======================================
|
|
2117
|
-
if (_ds.prog_id === "system") {
|
|
2117
|
+
if (_ds.prog_id === "system") {
|
|
2118
|
+
//TBD tree_obj.menuType === "globals"
|
|
2118
2119
|
_ds.currentRecordId = "dataset";
|
|
2119
|
-
await func.datasource.render_fields_dataset(SESSION_ID, dataSourceSession, {
|
|
2120
|
+
await func.datasource.render_fields_dataset(SESSION_ID, dataSourceSession, {
|
|
2121
|
+
value: _session.url_params,
|
|
2122
|
+
});
|
|
2120
2123
|
|
|
2121
2124
|
return await callback_datasource();
|
|
2122
2125
|
}
|
|
@@ -2186,8 +2189,8 @@ func.datasource.execute = async function (
|
|
|
2186
2189
|
SESSION_ID,
|
|
2187
2190
|
"Data source",
|
|
2188
2191
|
err.message +
|
|
2189
|
-
|
|
2190
|
-
|
|
2192
|
+
" https://" +
|
|
2193
|
+
prog_obj.progDataSource.dataSourceDataUrl,
|
|
2191
2194
|
"E"
|
|
2192
2195
|
);
|
|
2193
2196
|
return null;
|
|
@@ -3620,7 +3623,7 @@ func.datasource.del = function (SESSION_ID, dsP) {
|
|
|
3620
3623
|
|
|
3621
3624
|
const perform_delete = async function () {
|
|
3622
3625
|
var response = {
|
|
3623
|
-
success: function (jsonP, ajaxP) {
|
|
3626
|
+
success: function (jsonP, ajaxP) {},
|
|
3624
3627
|
error: function (status) {
|
|
3625
3628
|
console.error("error datasource:" + status);
|
|
3626
3629
|
},
|
|
@@ -3686,8 +3689,8 @@ func.datasource.del = function (SESSION_ID, dsP) {
|
|
|
3686
3689
|
if (SESSION_OBJ[SESSION_ID].DS_GLB[dsP]) {
|
|
3687
3690
|
delete SCREEN_BLOCKER_OBJ[
|
|
3688
3691
|
SESSION_OBJ[SESSION_ID].DS_GLB[dsP].screenId +
|
|
3689
|
-
|
|
3690
|
-
|
|
3692
|
+
"_" +
|
|
3693
|
+
SESSION_OBJ[SESSION_ID].DS_GLB[dsP].callingScreenId
|
|
3691
3694
|
];
|
|
3692
3695
|
|
|
3693
3696
|
delete_pending_jobs();
|
|
@@ -4311,13 +4314,15 @@ func.datasource.get_value = async function (
|
|
|
4311
4314
|
}
|
|
4312
4315
|
|
|
4313
4316
|
if (!org_dsSessionP && recordId) {
|
|
4314
|
-
if (typeof _ds.data_feed?.rows?.[recordId]?.[_field_id] !== "undefined") {
|
|
4317
|
+
// if (typeof _ds.data_feed?.rows?.[recordId]?.[_field_id] !== "undefined") {
|
|
4318
|
+
if (!Object.keys(_ds.data_feed?.rows?.[recordId])?.includes(_field_id)) {
|
|
4315
4319
|
return await return_value(
|
|
4316
4320
|
_field_id,
|
|
4317
4321
|
_ds.data_feed.rows[recordId][_field_id]
|
|
4318
4322
|
);
|
|
4319
4323
|
}
|
|
4320
|
-
if (typeof _ds?.dynamic_fields?.[_field_id] !== "undefined") {
|
|
4324
|
+
// if (typeof _ds?.dynamic_fields?.[_field_id] !== "undefined") {
|
|
4325
|
+
if (!Object.keys(_ds?.dynamic_fields)?.includes(_field_id)) {
|
|
4321
4326
|
return await return_dynamic_value(
|
|
4322
4327
|
_field_id,
|
|
4323
4328
|
_ds.dynamic_fields[_field_id]
|