@eqproject/eqp-dynamic-module 2.7.22 → 2.7.24
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/dbgetter/dbgetter.component.mjs +20 -7
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +19 -6
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +19 -6
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/private/dbgetter/dbgetter.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4430,22 +4430,35 @@ class DbgetterComponent {
|
|
|
4430
4430
|
var fieldRelated = fieldWithRelation.QueryPropertyValue.replace("!", "");
|
|
4431
4431
|
if (this.record[fieldRelated] == null) {
|
|
4432
4432
|
console.log("this.record[fieldRelated] E' NULL", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
|
|
4433
|
-
this.relations.push({ field: fieldRelated, loaded: false });
|
|
4433
|
+
this.relations.push({ field: fieldRelated, loaded: false, actualvalue: this.record[fieldRelated] });
|
|
4434
4434
|
this.checkRelations();
|
|
4435
4435
|
this.interval = setInterval(() => {
|
|
4436
4436
|
console.log("this.record[fieldRelated] CHECK", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
|
|
4437
4437
|
if (this.record[fieldRelated] != null) {
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4438
|
+
var currentRelation = this.relations.find(x => x.field == fieldRelated);
|
|
4439
|
+
if (currentRelation != null) {
|
|
4440
|
+
if (currentRelation.actualvalue != null && this.record[fieldRelated] != currentRelation.actualvalue) {
|
|
4441
|
+
console.log("this.record[fieldRelated] HA CAMBIATO VALORE!!", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
|
|
4442
|
+
currentRelation.actualvalue = this.record[fieldRelated];
|
|
4443
|
+
currentRelation.loaded = true;
|
|
4444
|
+
fieldWithRelation.QueryPropertyValue = this.record[fieldRelated];
|
|
4445
|
+
this.record[this.field.Name] = '';
|
|
4446
|
+
}
|
|
4447
|
+
if (currentRelation.actualvalue == null && this.record[fieldRelated] != null) {
|
|
4448
|
+
console.log("this.record[fieldRelated] NON E' PIU' NULL!! :)", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
|
|
4449
|
+
currentRelation.actualvalue = this.record[fieldRelated];
|
|
4450
|
+
currentRelation.loaded = true;
|
|
4451
|
+
fieldWithRelation.QueryPropertyValue = this.record[fieldRelated];
|
|
4452
|
+
}
|
|
4453
|
+
this.checkRelations();
|
|
4454
|
+
}
|
|
4442
4455
|
}
|
|
4443
4456
|
}, 1000);
|
|
4444
4457
|
}
|
|
4445
4458
|
else {
|
|
4446
4459
|
console.log("this.record[fieldRelated] NON E' NULL!! :)", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
|
|
4447
4460
|
fieldWithRelation.QueryPropertyValue = this.record[fieldRelated] != null ? this.record[fieldRelated] : '';
|
|
4448
|
-
this.relations.push({ field: fieldRelated, loaded: true });
|
|
4461
|
+
this.relations.push({ field: fieldRelated, loaded: true, actualvalue: this.record[fieldRelated] });
|
|
4449
4462
|
this.checkRelations();
|
|
4450
4463
|
}
|
|
4451
4464
|
this.showButtonReply = false;
|