@xuda.io/runtime-bundle 1.0.274 → 1.0.275
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.
|
@@ -33757,8 +33757,8 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
33757
33757
|
"xu-bind": async function ($elm, val) {
|
|
33758
33758
|
if (is_skeleton) return;
|
|
33759
33759
|
|
|
33760
|
-
let view_field_id = val.value;
|
|
33761
|
-
|
|
33760
|
+
// let view_field_id = val.value;
|
|
33761
|
+
let val_is_reference_field = false
|
|
33762
33762
|
|
|
33763
33763
|
let _prog_id = $elm.data().xuData.paramsP.prog_id;
|
|
33764
33764
|
let _dsP = $elm.data().xuData.paramsP.dsSessionP;
|
|
@@ -33809,9 +33809,9 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
33809
33809
|
|
|
33810
33810
|
try {
|
|
33811
33811
|
bind_field_id = await get_bind_field(val.value)
|
|
33812
|
+
val_is_reference_field = true
|
|
33812
33813
|
} catch (err) {
|
|
33813
33814
|
try {
|
|
33814
|
-
|
|
33815
33815
|
if (!_.isEmpty($elm?.data()?.xuAttributes?.["xu-exp:xu-bind"])) {
|
|
33816
33816
|
const res = (
|
|
33817
33817
|
await func.expression.get(
|
|
@@ -33902,11 +33902,15 @@ func.UI.screen.execute_xu_functions = async function (
|
|
|
33902
33902
|
if (!_ds.currentRecordId) return;
|
|
33903
33903
|
let value
|
|
33904
33904
|
try {
|
|
33905
|
-
if (
|
|
33906
|
-
|
|
33905
|
+
if (val_is_reference_field) {
|
|
33906
|
+
if (is_dynamic_field) {
|
|
33907
|
+
value = _ds.dynamic_fields[bind_field_id].value;
|
|
33908
|
+
} else {
|
|
33909
|
+
const row_idx = func.common.find_ROWID_idx(_ds, _ds.currentRecordId);
|
|
33910
|
+
value = _ds.data_feed.rows?.[row_idx]?.[val.value];
|
|
33911
|
+
}
|
|
33907
33912
|
} else {
|
|
33908
|
-
|
|
33909
|
-
value = _ds.data_feed.rows?.[row_idx]?.[val.value];
|
|
33913
|
+
value = val
|
|
33910
33914
|
}
|
|
33911
33915
|
if (typeof value === "undefined") return;
|
|
33912
33916
|
bind.setter($elm[0], value);
|