@eqproject/eqp-dynamic-module 2.7.20 → 2.7.22
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 +12 -15
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +11 -14
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +11 -14
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4421,6 +4421,7 @@ class DbgetterComponent {
|
|
|
4421
4421
|
if (this.field.DataGetter.DataGetterValue.openedFields.find(x => x.QueryPropertyValue == '?') != null) {
|
|
4422
4422
|
// Il campo ha almeno un valore con "?"
|
|
4423
4423
|
this.haveQuestions = true;
|
|
4424
|
+
this.showButtonReply = false;
|
|
4424
4425
|
}
|
|
4425
4426
|
if (this.field.DataGetter.DataGetterValue.openedFields.find(x => x.QueryPropertyValue.indexOf('!') != -1) != null) {
|
|
4426
4427
|
// Il campo ha almeno un valore con "!nomerelazione"
|
|
@@ -4429,13 +4430,13 @@ class DbgetterComponent {
|
|
|
4429
4430
|
var fieldRelated = fieldWithRelation.QueryPropertyValue.replace("!", "");
|
|
4430
4431
|
if (this.record[fieldRelated] == null) {
|
|
4431
4432
|
console.log("this.record[fieldRelated] E' NULL", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
|
|
4432
|
-
this.relations.push({ field:
|
|
4433
|
+
this.relations.push({ field: fieldRelated, loaded: false });
|
|
4433
4434
|
this.checkRelations();
|
|
4434
4435
|
this.interval = setInterval(() => {
|
|
4435
4436
|
console.log("this.record[fieldRelated] CHECK", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
|
|
4436
4437
|
if (this.record[fieldRelated] != null) {
|
|
4437
4438
|
console.log("this.record[fieldRelated] E' CAMBIATO E NON E' NULL!! :)", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
|
|
4438
|
-
this.relations.find(x => x.field ==
|
|
4439
|
+
this.relations.find(x => x.field == fieldRelated).loaded = true;
|
|
4439
4440
|
this.checkRelations();
|
|
4440
4441
|
fieldWithRelation.QueryPropertyValue = this.record[fieldRelated];
|
|
4441
4442
|
}
|
|
@@ -4444,16 +4445,18 @@ class DbgetterComponent {
|
|
|
4444
4445
|
else {
|
|
4445
4446
|
console.log("this.record[fieldRelated] NON E' NULL!! :)", this.field.Name, fieldRelated, this.record[fieldRelated], this.record);
|
|
4446
4447
|
fieldWithRelation.QueryPropertyValue = this.record[fieldRelated] != null ? this.record[fieldRelated] : '';
|
|
4447
|
-
this.relations.push({ field:
|
|
4448
|
+
this.relations.push({ field: fieldRelated, loaded: true });
|
|
4448
4449
|
this.checkRelations();
|
|
4449
4450
|
}
|
|
4450
|
-
this.showButtonReply =
|
|
4451
|
+
this.showButtonReply = false;
|
|
4451
4452
|
});
|
|
4452
4453
|
}
|
|
4453
|
-
|
|
4454
|
-
this.showButtonReply = true;
|
|
4454
|
+
if (!this.haveRelations) {
|
|
4455
4455
|
this.relationsLoaded = true;
|
|
4456
4456
|
}
|
|
4457
|
+
if (!this.haveQuestions && !this.haveRelations) {
|
|
4458
|
+
this.showButtonReply = true;
|
|
4459
|
+
}
|
|
4457
4460
|
}
|
|
4458
4461
|
else {
|
|
4459
4462
|
if (this.data == null) {
|
|
@@ -4495,14 +4498,8 @@ class DbgetterComponent {
|
|
|
4495
4498
|
}
|
|
4496
4499
|
else {
|
|
4497
4500
|
if (behaviours.indexOf("manage-question-in-dbgetter") != -1) {
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
this.showTable = false;
|
|
4501
|
-
}
|
|
4502
|
-
else {
|
|
4503
|
-
this.showButtonReply = false;
|
|
4504
|
-
this.showTable = true;
|
|
4505
|
-
}
|
|
4501
|
+
this.showButtonReply = false;
|
|
4502
|
+
this.showTable = true;
|
|
4506
4503
|
}
|
|
4507
4504
|
else {
|
|
4508
4505
|
if (!this.DirectlyOpenTable) {
|