@xuda.io/runtime-bundle 1.0.247 → 1.0.248
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.
|
@@ -34165,44 +34165,13 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
34165
34165
|
let iterator_val = $elm.data().xuData.iterator_val;
|
|
34166
34166
|
let iterator_key = $elm.data().xuData.iterator_key;
|
|
34167
34167
|
var i = 0;
|
|
34168
|
-
for await (
|
|
34168
|
+
for await (let [_key, _val] of Object.entries(arr)) {
|
|
34169
|
+
|
|
34170
|
+
if (_.isArray(arr)) { _key = Number(_key) }
|
|
34169
34171
|
|
|
34170
34172
|
const set_value = async function (currentRecordId, field_id, value) {
|
|
34171
34173
|
let is_dynamic_field = false;
|
|
34172
|
-
|
|
34173
|
-
// SESSION_ID,
|
|
34174
|
-
// paramsP.dsSessionP
|
|
34175
|
-
// );
|
|
34176
|
-
|
|
34177
|
-
// let view_field_obj = func.common.find_item_by_key(
|
|
34178
|
-
// _progFields,
|
|
34179
|
-
// "field_id",
|
|
34180
|
-
// field_id
|
|
34181
|
-
// );
|
|
34182
|
-
// if (view_field_obj) {
|
|
34183
|
-
// let _ds = SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP];
|
|
34184
|
-
// try {
|
|
34185
|
-
// const row_idx = func.common.find_ROWID_idx(
|
|
34186
|
-
// _ds,
|
|
34187
|
-
// currentRecordId
|
|
34188
|
-
// );
|
|
34189
|
-
// _ds.data_feed.rows[row_idx][field_id] = value;
|
|
34190
|
-
// } catch (err) {
|
|
34191
|
-
// console.error(err);
|
|
34192
|
-
// }
|
|
34193
|
-
// } else {
|
|
34194
|
-
// if (["_FOR_VAL", "_FOR_KEY"].includes(field_id)) {
|
|
34195
|
-
// is_dynamic_field = true;
|
|
34196
|
-
// func.datasource.add_dynamic_field_to_ds(
|
|
34197
|
-
// SESSION_ID,
|
|
34198
|
-
// paramsP.dsSessionP,
|
|
34199
|
-
// field_id,
|
|
34200
|
-
// value
|
|
34201
|
-
// );
|
|
34202
|
-
// } else {
|
|
34203
|
-
// console.error("field not exist in dataset for xu-for method")
|
|
34204
|
-
// }
|
|
34205
|
-
// }
|
|
34174
|
+
|
|
34206
34175
|
|
|
34207
34176
|
|
|
34208
34177
|
if (["_FOR_VAL", "_FOR_KEY"].includes(field_id)) {
|