@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.
- package/esm2020/lib/components/private/field-templates/action-button-field-template/action-button-field-template.component.mjs +2 -2
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +7 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +7 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +7 -3
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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;
|