@xuda.io/runtime-bundle 1.0.706 → 1.0.708

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.
@@ -3317,6 +3317,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3317
3317
  datasource_changed[0], // refresh the current datasource only
3318
3318
  );
3319
3319
  }
3320
+ ///// REFRESH PARAMETERS IN
3321
+ if (fields_changed.length) {
3322
+ for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
3323
+ if (_ds.args.parameters_raw_obj) {
3324
+ for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
3325
+ if (fields_changed.includes(val)) {
3326
+ let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
3327
+ _ds.args.parameters_obj_inP[val] = ret.result;
3328
+ }
3329
+ }
3330
+ }
3331
+ }
3332
+ }
3320
3333
  }
3321
3334
  resolve();
3322
3335
  });
@@ -3317,6 +3317,19 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3317
3317
  datasource_changed[0], // refresh the current datasource only
3318
3318
  );
3319
3319
  }
3320
+ ///// REFRESH PARAMETERS IN
3321
+ if (fields_changed.length) {
3322
+ for (const [_dsSession, _ds] of Object.entries(_session.DS_GLB)) {
3323
+ if (_ds.args.parameters_raw_obj) {
3324
+ for (const [key, val] of Object.entries(_ds.args.parameters_raw_obj)) {
3325
+ if (fields_changed.includes(val)) {
3326
+ let ret = await func.expression.get(SESSION_ID, '@' + val, _dsSession, 'parameters');
3327
+ _ds.args.parameters_obj_inP[val] = ret.result;
3328
+ }
3329
+ }
3330
+ }
3331
+ }
3332
+ }
3320
3333
  }
3321
3334
  resolve();
3322
3335
  });