@eqproject/eqp-dynamic-module 2.6.41 → 2.6.43
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 +11 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +15 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +15 -2
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5227,9 +5227,17 @@ class AddFormRecordComponent {
|
|
|
5227
5227
|
if (fireTrigger) {
|
|
5228
5228
|
// Il trigger va sparato. Valuto le funzioni interne
|
|
5229
5229
|
var formulas = JSON.parse(JSON.stringify(trigger.formulas));
|
|
5230
|
+
GlobalService.debugLog("checkTriggers - evaluate formulas ", formulas);
|
|
5230
5231
|
Object.keys(formulas).forEach((key) => {
|
|
5231
5232
|
var formula = formulas[key].value;
|
|
5232
|
-
|
|
5233
|
+
GlobalService.debugLog("checkTriggers - formulas[key] ", formulas[key]);
|
|
5234
|
+
var temp;
|
|
5235
|
+
if (formulas[key].type == TriggerPropertyTypeEnum.DMMODULE) {
|
|
5236
|
+
temp = formula;
|
|
5237
|
+
}
|
|
5238
|
+
else {
|
|
5239
|
+
temp = UtilityHelperService.EvaluateFieldFormula(formula, record, null);
|
|
5240
|
+
}
|
|
5233
5241
|
formulas[key] = temp;
|
|
5234
5242
|
});
|
|
5235
5243
|
// Sparo il trigger all'esterno
|
|
@@ -8153,7 +8161,12 @@ class EqpDynamicModuleComponent {
|
|
|
8153
8161
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetByIDEndPoint, dynamicModuleParams, (res) => {
|
|
8154
8162
|
// console.log("success RunEndPointCall",res,this.defaultViewMode);
|
|
8155
8163
|
this.form = res;
|
|
8156
|
-
this.form.
|
|
8164
|
+
if (this.form.ObjectTriggers != null && this.form.ObjectTriggers != "") {
|
|
8165
|
+
this.form.Triggers = JSON.parse(this.form.ObjectTriggers);
|
|
8166
|
+
}
|
|
8167
|
+
else {
|
|
8168
|
+
this.form.Triggers = new Array();
|
|
8169
|
+
}
|
|
8157
8170
|
this.selectedRecord = null;
|
|
8158
8171
|
if (this.answerToDuplicateId != null) {
|
|
8159
8172
|
this.selectedRecord = this.answerToDuplicateId;
|