@eqproject/eqp-dynamic-module 2.6.38 → 2.6.41
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/form-records/add-form-record/add-form-record.component.mjs +2 -2
- package/esm2020/lib/components/private/trigger-creator/trigger-creator.component.mjs +1 -7
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +1 -7
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +1 -7
- 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
|
});
|
|
@@ -10731,8 +10731,6 @@ class TriggerCreatorComponent {
|
|
|
10731
10731
|
this.triggerPropertyType = TriggerPropertyTypeEnum;
|
|
10732
10732
|
}
|
|
10733
10733
|
ngOnInit() {
|
|
10734
|
-
console.log("this.formulas", this.formulas);
|
|
10735
|
-
console.log("this.trigger", this.trigger);
|
|
10736
10734
|
if (this.trigger == null) {
|
|
10737
10735
|
this.trigger = new Trigger();
|
|
10738
10736
|
this.trigger.conditions = new Array();
|
|
@@ -10841,15 +10839,11 @@ class TriggerCreatorComponent {
|
|
|
10841
10839
|
this.utilityHelperService.RunEndPointCall(this.endPointConfiguration.Forms.GetAllFormEndPoint, dynamicModuleParams, (res) => {
|
|
10842
10840
|
this.forms = res;
|
|
10843
10841
|
this.forms = this.forms.sort((uno, due) => uno.Name.localeCompare(due.Name));
|
|
10844
|
-
this.forms.forEach((form) => {
|
|
10845
|
-
form.ID = '"' + form.ID + '"';
|
|
10846
|
-
});
|
|
10847
10842
|
this.formulaFieldsStructure.forEach((res) => {
|
|
10848
10843
|
if (res.type == TriggerPropertyTypeEnum.DMMODULE) {
|
|
10849
10844
|
res.object = this.forms.find(x => x.ID == res.value);
|
|
10850
10845
|
}
|
|
10851
10846
|
});
|
|
10852
|
-
console.log("this.formulaFieldsStructure", this.formulaFieldsStructure);
|
|
10853
10847
|
}, (err) => { });
|
|
10854
10848
|
}
|
|
10855
10849
|
onEqpSelectModule(ev, formulaField) {
|