@xuda.io/runtime-bundle 1.0.750 → 1.0.752
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.
|
@@ -32165,28 +32165,37 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32165
32165
|
return field_id;
|
|
32166
32166
|
};
|
|
32167
32167
|
|
|
32168
|
+
// try {
|
|
32169
|
+
// bind_field_id = await get_bind_field(val.value);
|
|
32170
|
+
// val_is_reference_field = true;
|
|
32171
|
+
// } catch (err) {
|
|
32172
|
+
// try {
|
|
32173
|
+
// if (!_.isEmpty($elm?.data()?.xuAttributes?.['xu-exp:xu-bind'])) {
|
|
32174
|
+
// bind_field_exp = $elm.data().xuAttributes['xu-exp:xu-bind'];
|
|
32175
|
+
// const res = await func.expression.get(SESSION_ID, bind_field_exp, paramsP.dsSessionP, 'UI Attr EXP');
|
|
32176
|
+
|
|
32177
|
+
// if (Object.keys(res.fields).length) {
|
|
32178
|
+
// const field_id_from_exp = Object.keys(res.fields)[0];
|
|
32179
|
+
// bind_field_id = await get_bind_field(field_id_from_exp);
|
|
32180
|
+
// } else {
|
|
32181
|
+
// throw err?.message || err;
|
|
32182
|
+
// }
|
|
32183
|
+
// } else {
|
|
32184
|
+
// throw err?.message || err;
|
|
32185
|
+
// }
|
|
32186
|
+
// } catch (err) {
|
|
32187
|
+
// console.error(err?.message || err);
|
|
32188
|
+
// return {};
|
|
32189
|
+
// }
|
|
32190
|
+
// // return {};
|
|
32191
|
+
// }
|
|
32192
|
+
|
|
32168
32193
|
try {
|
|
32169
|
-
bind_field_id = await get_bind_field(val.value);
|
|
32194
|
+
bind_field_id = await get_bind_field(val.value.split('.')[0]);
|
|
32170
32195
|
val_is_reference_field = true;
|
|
32171
32196
|
} catch (err) {
|
|
32172
|
-
|
|
32173
|
-
|
|
32174
|
-
bind_field_exp = $elm.data().xuAttributes['xu-exp:xu-bind'];
|
|
32175
|
-
const res = await func.expression.get(SESSION_ID, bind_field_exp, paramsP.dsSessionP, 'UI Attr EXP');
|
|
32176
|
-
|
|
32177
|
-
if (Object.keys(res.fields).length) {
|
|
32178
|
-
const field_id_from_exp = Object.keys(res.fields)[0];
|
|
32179
|
-
bind_field_id = await get_bind_field(field_id_from_exp);
|
|
32180
|
-
} else {
|
|
32181
|
-
throw err?.message || err;
|
|
32182
|
-
}
|
|
32183
|
-
} else {
|
|
32184
|
-
throw err.message;
|
|
32185
|
-
}
|
|
32186
|
-
} catch (err) {
|
|
32187
|
-
console.error(err?.message || err);
|
|
32188
|
-
return {};
|
|
32189
|
-
}
|
|
32197
|
+
console.error(err?.message || err);
|
|
32198
|
+
return {};
|
|
32190
32199
|
// return {};
|
|
32191
32200
|
}
|
|
32192
32201
|
|
|
@@ -32311,6 +32320,10 @@ func.UI.screen.execute_xu_functions = async function (SESSION_ID, is_skeleton, $
|
|
|
32311
32320
|
value = false;
|
|
32312
32321
|
}
|
|
32313
32322
|
}
|
|
32323
|
+
if (field_prop.props.fieldType === 'object' && $elm.attr('type') === 'text' && val.value.split('.').length > 1) {
|
|
32324
|
+
let str = val.value.replace(bind_field_id, '(' + JSON.stringify(value) + ')');
|
|
32325
|
+
value = eval(str);
|
|
32326
|
+
}
|
|
32314
32327
|
} else {
|
|
32315
32328
|
value = val.value;
|
|
32316
32329
|
}
|