@eqproject/eqp-dynamic-module 2.6.40 → 2.6.42
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/exported/eqp-dynamic-module/eqp-dynamic-module.component.mjs +7 -2
- package/esm2020/lib/components/private/form-records/add-form-record/add-form-record.component.mjs +2 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +7 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +7 -2
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5228,7 +5228,7 @@ class AddFormRecordComponent {
|
|
|
5228
5228
|
// Il trigger va sparato. Valuto le funzioni interne
|
|
5229
5229
|
var formulas = JSON.parse(JSON.stringify(trigger.formulas));
|
|
5230
5230
|
Object.keys(formulas).forEach((key) => {
|
|
5231
|
-
var formula = formulas[key];
|
|
5231
|
+
var formula = formulas[key].value;
|
|
5232
5232
|
var temp = UtilityHelperService.EvaluateFieldFormula(formula, record, null);
|
|
5233
5233
|
formulas[key] = temp;
|
|
5234
5234
|
});
|
|
@@ -8153,7 +8153,12 @@ class EqpDynamicModuleComponent {
|
|
|
8153
8153
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
|
|
8154
8154
|
// console.log("success RunEndPointCall",res,this.defaultViewMode);
|
|
8155
8155
|
this.form = res;
|
|
8156
|
-
this.form.
|
|
8156
|
+
if (this.form.ObjectTriggers != null && this.form.ObjectTriggers != "") {
|
|
8157
|
+
this.form.Triggers = JSON.parse(this.form.ObjectTriggers);
|
|
8158
|
+
}
|
|
8159
|
+
else {
|
|
8160
|
+
this.form.Triggers = new Array();
|
|
8161
|
+
}
|
|
8157
8162
|
this.selectedRecord = null;
|
|
8158
8163
|
if (this.answerToDuplicateId != null) {
|
|
8159
8164
|
this.selectedRecord = this.answerToDuplicateId;
|