@xuda.io/runtime-bundle 1.0.708 → 1.0.710

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.
@@ -30004,6 +30004,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
30004
30004
 
30005
30005
  if (!fields_changed.includes(field_id)) {
30006
30006
  fields_changed.push(field_id);
30007
+
30008
+ ///// REFRESH PARAMETERS IN
30009
+
30010
+ for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
30011
+ if (_ds.args.parameters_raw_obj) {
30012
+ for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
30013
+ if (val.includes(field_id)) {
30014
+ let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
30015
+ _ds.in_parameters[key].value = ret.result;
30016
+ }
30017
+ }
30018
+ }
30019
+ }
30007
30020
  }
30008
30021
  if (!datasource_changed.includes(dataSource)) {
30009
30022
  datasource_changed.push(dataSource);
@@ -30050,19 +30063,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
30050
30063
  datasource_changed[0], // refresh the current datasource only
30051
30064
  );
30052
30065
  }
30053
- ///// REFRESH PARAMETERS IN
30054
- if (fields_changed.length) {
30055
- for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
30056
- if (_ds.args.parameters_raw_obj) {
30057
- for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
30058
- if (fields_changed.includes(val)) {
30059
- let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
30060
- _ds.args.parameters_obj_inP[val] = ret.result;
30061
- }
30062
- }
30063
- }
30064
- }
30065
- }
30066
+ // ///// REFRESH PARAMETERS IN
30067
+ // if (fields_changed.length) {
30068
+ // for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
30069
+ // if (_ds.args.parameters_raw_obj) {
30070
+ // for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
30071
+ // if (fields_changed.includes(val)) {
30072
+ // let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
30073
+ // _ds.in_parameters[val].value = ret.result;
30074
+ // }
30075
+ // }
30076
+ // }
30077
+ // }
30078
+ // }
30066
30079
  }
30067
30080
  resolve();
30068
30081
  });
@@ -31870,7 +31883,7 @@ const get_params_obj_new = async function (SESSION_ID, prog_id, nodeP, dsSession
31870
31883
  // in parameter
31871
31884
  let ret = await func.expression.get(SESSION_ID, nodeP.attributes[`xu-exp:${val.data.parameter}`], dsSession, 'parameters');
31872
31885
  params_res[val.data.parameter] = ret.result;
31873
- params_raw[val.data.parameter] = val.data.parameter;
31886
+ params_raw[val.data.parameter] = nodeP.attributes[`xu-exp:${val.data.parameter}`];
31874
31887
  }
31875
31888
  }
31876
31889
  continue;