@xuda.io/runtime-bundle 1.0.259 → 1.0.261

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.
@@ -14736,13 +14736,13 @@ func.UI.screen.execute_xu_functions = async function (
14736
14736
  if (!custom_iterator_key) {
14737
14737
  is_key_dynamic_field = true
14738
14738
  // iterator_key = (reference_source_obj?.fieldIdP || "") + "_FOR_KEY";
14739
- iterator_key = $elm.data().xuData.node_org.id + "_FOR_KEY";
14739
+ iterator_key = $elm.data().xuData.node_org.id.replaceAll("-", "_") + "_FOR_KEY";
14740
14740
  }
14741
14741
 
14742
14742
  if (!custom_iterator_val) {
14743
14743
  is_val_dynamic_field = true
14744
14744
  // iterator_val = (reference_source_obj?.fieldIdP || "") + "_FOR_VAL";
14745
- iterator_val = $elm.data().xuData.node_org.id + "_FOR_VAL";
14745
+ iterator_val = $elm.data().xuData.node_org.id.replaceAll("-", "_") + "_FOR_VAL";
14746
14746
  }
14747
14747
 
14748
14748
  var i = 0;
@@ -14881,19 +14881,23 @@ func.UI.screen.execute_xu_functions = async function (
14881
14881
  }
14882
14882
  },
14883
14883
  "xu-exp": async function ($elm, val) {
14884
- let view_field_id = val.value === null ? true : val.value
14885
- if (val.value === "@_FOR_KEY") {
14886
- view_field_id = "@" + $elm.data().xuData.iterate_info.iterator_key;
14884
+ let exp = val.value === null ? true : val.value
14885
+ if (val.value.includes("@_FOR_KEY")) {
14886
+ exp = exp.replaceAll("@_FOR_KEY", "@" + $elm.data().xuData.iterate_info.iterator_key);
14887
14887
  }
14888
14888
 
14889
- if (val.value === "@_FOR_VAL") {
14890
- view_field_id = "@" + $elm.data().xuData.iterate_info.iterator_val;
14889
+ if (val.value.includes("@_FOR_VAL")) {
14890
+ exp = exp.replaceAll("@_FOR_VAL", "@" + $elm.data().xuData.iterate_info.iterator_val);
14891
14891
  }
14892
14892
 
14893
+ // if (val.value === "@_FOR_VAL") {
14894
+ // exp = "@" + $elm.data().xuData.iterate_info.iterator_val;
14895
+ // }
14896
+
14893
14897
 
14894
14898
  let exp_ret = await func.expression.get(
14895
14899
  SESSION_ID,
14896
- view_field_id,
14900
+ exp,
14897
14901
  paramsP.dsSessionP,
14898
14902
  "UI Attr EXP",
14899
14903
  SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP].currentRecordId
@@ -12146,13 +12146,13 @@ func.UI.screen.execute_xu_functions = async function (
12146
12146
  if (!custom_iterator_key) {
12147
12147
  is_key_dynamic_field = true
12148
12148
  // iterator_key = (reference_source_obj?.fieldIdP || "") + "_FOR_KEY";
12149
- iterator_key = $elm.data().xuData.node_org.id + "_FOR_KEY";
12149
+ iterator_key = $elm.data().xuData.node_org.id.replaceAll("-", "_") + "_FOR_KEY";
12150
12150
  }
12151
12151
 
12152
12152
  if (!custom_iterator_val) {
12153
12153
  is_val_dynamic_field = true
12154
12154
  // iterator_val = (reference_source_obj?.fieldIdP || "") + "_FOR_VAL";
12155
- iterator_val = $elm.data().xuData.node_org.id + "_FOR_VAL";
12155
+ iterator_val = $elm.data().xuData.node_org.id.replaceAll("-", "_") + "_FOR_VAL";
12156
12156
  }
12157
12157
 
12158
12158
  var i = 0;
@@ -12291,19 +12291,23 @@ func.UI.screen.execute_xu_functions = async function (
12291
12291
  }
12292
12292
  },
12293
12293
  "xu-exp": async function ($elm, val) {
12294
- let view_field_id = val.value === null ? true : val.value
12295
- if (val.value === "@_FOR_KEY") {
12296
- view_field_id = "@" + $elm.data().xuData.iterate_info.iterator_key;
12294
+ let exp = val.value === null ? true : val.value
12295
+ if (val.value.includes("@_FOR_KEY")) {
12296
+ exp = exp.replaceAll("@_FOR_KEY", "@" + $elm.data().xuData.iterate_info.iterator_key);
12297
12297
  }
12298
12298
 
12299
- if (val.value === "@_FOR_VAL") {
12300
- view_field_id = "@" + $elm.data().xuData.iterate_info.iterator_val;
12299
+ if (val.value.includes("@_FOR_VAL")) {
12300
+ exp = exp.replaceAll("@_FOR_VAL", "@" + $elm.data().xuData.iterate_info.iterator_val);
12301
12301
  }
12302
12302
 
12303
+ // if (val.value === "@_FOR_VAL") {
12304
+ // exp = "@" + $elm.data().xuData.iterate_info.iterator_val;
12305
+ // }
12306
+
12303
12307
 
12304
12308
  let exp_ret = await func.expression.get(
12305
12309
  SESSION_ID,
12306
- view_field_id,
12310
+ exp,
12307
12311
  paramsP.dsSessionP,
12308
12312
  "UI Attr EXP",
12309
12313
  SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP].currentRecordId