@eqproject/eqp-dynamic-module 2.9.22 → 2.9.23

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.
@@ -5689,7 +5689,7 @@ class ActionButtonFieldTemplateComponent {
5689
5689
  GlobalService.debugLog("checkTriggers - assigned DMMODULE - id/code ", formula);
5690
5690
  }
5691
5691
  else if (formulaObj.type == TriggerPropertyTypeEnum.DROPDOWN_LIST) {
5692
- temp = formulaObj.selectedAllowedValue.key; // nel caso di dropdown gli assegno sia chiave che valore
5692
+ temp = formulaObj.selectedAllowedValue.key; // nel caso di dropdown gli assegno solo la chiave
5693
5693
  GlobalService.debugLog("checkTriggers - assigned DROPDOWN_LIST- selectedAllowedValue ", formulaObj.selectedAllowedValue);
5694
5694
  }
5695
5695
  else { // passo all'eval quando è stringa e assegno il valore calcolato
@@ -6837,10 +6837,14 @@ class AddFormRecordComponent {
6837
6837
  var formula = formulas[key].value;
6838
6838
  GlobalService.debugLog("checkTriggers - formulas[key] ", formulas[key]);
6839
6839
  var temp;
6840
- if (formulas[key].type == TriggerPropertyTypeEnum.DMMODULE) {
6840
+ if (formulas[key].type == TriggerPropertyTypeEnum.DMMODULE) { // assegno id/code del modulo selezionato
6841
6841
  temp = formula;
6842
6842
  }
6843
- else {
6843
+ else if (formulas[key].type == TriggerPropertyTypeEnum.DROPDOWN_LIST) {
6844
+ temp = formulas[key].selectedAllowedValue.key; // nel caso di dropdown gli assegno solo la chiave
6845
+ GlobalService.debugLog("checkTriggers - assigned DROPDOWN_LIST- selectedAllowedValue ", temp);
6846
+ }
6847
+ else { // passo all'eval quando è stringa e assegno i lvalore calcolato
6844
6848
  temp = UtilityHelperService.EvaluateFieldFormula(formula, record, this.formulaObject);
6845
6849
  }
6846
6850
  formulas[key] = temp;