@eqproject/eqp-dynamic-module 2.10.82 → 2.10.83
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/README.md +4 -0
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +12 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +13 -0
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +11 -0
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8293,6 +8293,17 @@ class AddFormRecordComponent {
|
|
|
8293
8293
|
f.updateField();
|
|
8294
8294
|
} });
|
|
8295
8295
|
}
|
|
8296
|
+
// Le formule aggiornano record[fieldName] direttamente, senza passare dal FormControl.
|
|
8297
|
+
// Qui risincronizziamo tutti i FormControl dal record, altrimenti la validazione required
|
|
8298
|
+
// non si aggiorna quando un campo viene valorizzato via formula o ActionButton.
|
|
8299
|
+
if (this.form?.Fields) {
|
|
8300
|
+
this.form.Fields.forEach(field => {
|
|
8301
|
+
const ctrl = field.FormFormGroup?.get(field.Name);
|
|
8302
|
+
if (ctrl != null) {
|
|
8303
|
+
ctrl.setValue(this.record[field.Name], { emitEvent: false });
|
|
8304
|
+
}
|
|
8305
|
+
});
|
|
8306
|
+
}
|
|
8296
8307
|
}
|
|
8297
8308
|
//#endregion onRecordChange
|
|
8298
8309
|
//#region previewOrNewResponseRecord
|