@xuda.io/runtime-bundle 1.0.722 → 1.0.724

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.
@@ -3273,16 +3273,16 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3273
3273
  fields_changed.push(field_id);
3274
3274
 
3275
3275
  ///// REFRESH PARAMETERS IN
3276
- // for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
3277
- // if (_ds.args.parameters_raw_obj) {
3278
- // for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
3279
- // if (exp.includes(field_id)) {
3280
- // let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
3281
- // _ds.in_parameters[key].value = ret.result;
3282
- // }
3283
- // }
3284
- // }
3285
- // }
3276
+ for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
3277
+ if (_ds.args.parameters_raw_obj) {
3278
+ for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
3279
+ if (exp.includes(field_id)) {
3280
+ let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
3281
+ _ds.in_parameters[key].value = ret.result;
3282
+ }
3283
+ }
3284
+ }
3285
+ }
3286
3286
  }
3287
3287
  if (!datasource_changed.includes(dataSource)) {
3288
3288
  datasource_changed.push(dataSource);
@@ -6659,7 +6659,7 @@ func.events.execute = async function (
6659
6659
  var params_obj = {};
6660
6660
  if (_prog?.properties?.progParams) {
6661
6661
  for await (const [key, val] of Object.entries(_prog.properties.progParams)) {
6662
- if (!val.data.dir === 'in') continue;
6662
+ // if (val.data.dir === 'in') continue;
6663
6663
  if (typeof args.parameters_obj_inP?.[val.data.parameter] !== 'undefined') {
6664
6664
  if (args.parameters_obj_inP?.[val.data.parameter].fx) {
6665
6665
  let ret = await func.expression.get(SESSION_ID, args.parameters_obj_inP?.[val.data.parameter].fx, dsSession, 'parameters');
@@ -3273,16 +3273,16 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3273
3273
  fields_changed.push(field_id);
3274
3274
 
3275
3275
  ///// REFRESH PARAMETERS IN
3276
- // for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
3277
- // if (_ds.args.parameters_raw_obj) {
3278
- // for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
3279
- // if (exp.includes(field_id)) {
3280
- // let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
3281
- // _ds.in_parameters[key].value = ret.result;
3282
- // }
3283
- // }
3284
- // }
3285
- // }
3276
+ for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
3277
+ if (_ds.args.parameters_raw_obj) {
3278
+ for (const [key, exp] of Object.entries(_ds.args.parameters_raw_obj)) {
3279
+ if (exp.includes(field_id)) {
3280
+ let ret = await func.expression.get(SESSION_ID, exp, _dsSession, 'parameters');
3281
+ _ds.in_parameters[key].value = ret.result;
3282
+ }
3283
+ }
3284
+ }
3285
+ }
3286
3286
  }
3287
3287
  if (!datasource_changed.includes(dataSource)) {
3288
3288
  datasource_changed.push(dataSource);
@@ -6659,7 +6659,7 @@ func.events.execute = async function (
6659
6659
  var params_obj = {};
6660
6660
  if (_prog?.properties?.progParams) {
6661
6661
  for await (const [key, val] of Object.entries(_prog.properties.progParams)) {
6662
- if (!val.data.dir === 'in') continue;
6662
+ // if (val.data.dir === 'in') continue;
6663
6663
  if (typeof args.parameters_obj_inP?.[val.data.parameter] !== 'undefined') {
6664
6664
  if (args.parameters_obj_inP?.[val.data.parameter].fx) {
6665
6665
  let ret = await func.expression.get(SESSION_ID, args.parameters_obj_inP?.[val.data.parameter].fx, dsSession, 'parameters');