@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.
@@ -34105,13 +34105,13 @@ func.UI.screen.execute_xu_functions = async function (
34105
34105
  if (!custom_iterator_key) {
34106
34106
  is_key_dynamic_field = true
34107
34107
  // iterator_key = (reference_source_obj?.fieldIdP || "") + "_FOR_KEY";
34108
- iterator_key = $elm.data().xuData.node_org.id + "_FOR_KEY";
34108
+ iterator_key = $elm.data().xuData.node_org.id.replaceAll("-", "_") + "_FOR_KEY";
34109
34109
  }
34110
34110
 
34111
34111
  if (!custom_iterator_val) {
34112
34112
  is_val_dynamic_field = true
34113
34113
  // iterator_val = (reference_source_obj?.fieldIdP || "") + "_FOR_VAL";
34114
- iterator_val = $elm.data().xuData.node_org.id + "_FOR_VAL";
34114
+ iterator_val = $elm.data().xuData.node_org.id.replaceAll("-", "_") + "_FOR_VAL";
34115
34115
  }
34116
34116
 
34117
34117
  var i = 0;
@@ -34250,19 +34250,23 @@ func.UI.screen.execute_xu_functions = async function (
34250
34250
  }
34251
34251
  },
34252
34252
  "xu-exp": async function ($elm, val) {
34253
- let view_field_id = val.value === null ? true : val.value
34254
- if (val.value === "@_FOR_KEY") {
34255
- view_field_id = "@" + $elm.data().xuData.iterate_info.iterator_key;
34253
+ let exp = val.value === null ? true : val.value
34254
+ if (val.value.includes("@_FOR_KEY")) {
34255
+ exp = exp.replaceAll("@_FOR_KEY", "@" + $elm.data().xuData.iterate_info.iterator_key);
34256
34256
  }
34257
34257
 
34258
- if (val.value === "@_FOR_VAL") {
34259
- view_field_id = "@" + $elm.data().xuData.iterate_info.iterator_val;
34258
+ if (val.value.includes("@_FOR_VAL")) {
34259
+ exp = exp.replaceAll("@_FOR_VAL", "@" + $elm.data().xuData.iterate_info.iterator_val);
34260
34260
  }
34261
34261
 
34262
+ // if (val.value === "@_FOR_VAL") {
34263
+ // exp = "@" + $elm.data().xuData.iterate_info.iterator_val;
34264
+ // }
34265
+
34262
34266
 
34263
34267
  let exp_ret = await func.expression.get(
34264
34268
  SESSION_ID,
34265
- view_field_id,
34269
+ exp,
34266
34270
  paramsP.dsSessionP,
34267
34271
  "UI Attr EXP",
34268
34272
  SESSION_OBJ[SESSION_ID].DS_GLB[paramsP.dsSessionP].currentRecordId