@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.
@@ -5704,7 +5704,7 @@ class ActionButtonFieldTemplateComponent {
5704
5704
  GlobalService.debugLog("checkTriggers - assigned DMMODULE - id/code ", formula);
5705
5705
  }
5706
5706
  else if (formulaObj.type == TriggerPropertyTypeEnum.DROPDOWN_LIST) {
5707
- temp = formulaObj.selectedAllowedValue.key; // nel caso di dropdown gli assegno sia chiave che valore
5707
+ temp = formulaObj.selectedAllowedValue.key; // nel caso di dropdown gli assegno solo la chiave
5708
5708
  GlobalService.debugLog("checkTriggers - assigned DROPDOWN_LIST- selectedAllowedValue ", formulaObj.selectedAllowedValue);
5709
5709
  }
5710
5710
  else { // passo all'eval quando è stringa e assegno il valore calcolato
@@ -6865,10 +6865,14 @@ class AddFormRecordComponent {
6865
6865
  var formula = formulas[key].value;
6866
6866
  GlobalService.debugLog("checkTriggers - formulas[key] ", formulas[key]);
6867
6867
  var temp;
6868
- if (formulas[key].type == TriggerPropertyTypeEnum.DMMODULE) {
6868
+ if (formulas[key].type == TriggerPropertyTypeEnum.DMMODULE) { // assegno id/code del modulo selezionato
6869
6869
  temp = formula;
6870
6870
  }
6871
- else {
6871
+ else if (formulas[key].type == TriggerPropertyTypeEnum.DROPDOWN_LIST) {
6872
+ temp = formulas[key].selectedAllowedValue.key; // nel caso di dropdown gli assegno solo la chiave
6873
+ GlobalService.debugLog("checkTriggers - assigned DROPDOWN_LIST- selectedAllowedValue ", temp);
6874
+ }
6875
+ else { // passo all'eval quando è stringa e assegno i lvalore calcolato
6872
6876
  temp = UtilityHelperService.EvaluateFieldFormula(formula, record, this.formulaObject);
6873
6877
  }
6874
6878
  formulas[key] = temp;