@eqproject/eqp-dynamic-module 2.7.37 → 2.7.38
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 +14 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +13 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +13 -1
- 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
|
@@ -4410,6 +4410,7 @@ class DbgetterComponent {
|
|
|
4410
4410
|
this.haveRelations = false;
|
|
4411
4411
|
this.reload = true;
|
|
4412
4412
|
this.relations = new Array();
|
|
4413
|
+
this.backupQuestionFields = null;
|
|
4413
4414
|
}
|
|
4414
4415
|
ngOnInit() {
|
|
4415
4416
|
console.log("INSIDE DBGETTER", this.form, this.record, this.field, this.QueryEditorComponent);
|
|
@@ -4421,6 +4422,13 @@ class DbgetterComponent {
|
|
|
4421
4422
|
if (this.field.DataGetter.DataGetterValue.openedFields.find(x => x.QueryPropertyValue == '?') != null) {
|
|
4422
4423
|
// Il campo ha almeno un valore con "?"
|
|
4423
4424
|
this.haveQuestions = true;
|
|
4425
|
+
console.log("CHECKING BACKUPS OPENED FIELDS....", this.backupQuestionFields);
|
|
4426
|
+
if (this.backupQuestionFields == null) {
|
|
4427
|
+
this.backupQuestionFields = new Array();
|
|
4428
|
+
this.field.DataGetter.DataGetterValue.openedFields.forEach((rqf) => {
|
|
4429
|
+
this.backupQuestionFields.push(rqf.PropertyName);
|
|
4430
|
+
});
|
|
4431
|
+
}
|
|
4424
4432
|
}
|
|
4425
4433
|
if (this.field.DataGetter.DataGetterValue.openedFields.find(x => x.QueryPropertyValue.indexOf('!') != -1) != null) {
|
|
4426
4434
|
// Il campo ha almeno un valore con "!nomerelazione"
|
|
@@ -4452,6 +4460,10 @@ class DbgetterComponent {
|
|
|
4452
4460
|
currentRelation.loaded = true;
|
|
4453
4461
|
fieldWithRelation.QueryPropertyValue = "!" + fieldRelated;
|
|
4454
4462
|
this.record[this.field.Name] = null;
|
|
4463
|
+
// Recupero Backup
|
|
4464
|
+
this.backupQuestionFields.forEach((bof) => {
|
|
4465
|
+
this.field.DataGetter.DataGetterValue.openedFields.find(x => x.PropertyName == bof).QueryPropertyValue = "?";
|
|
4466
|
+
});
|
|
4455
4467
|
this.reloadComponent();
|
|
4456
4468
|
}
|
|
4457
4469
|
// Il campo relazionato INIZIALMENTE E' NULL, e cambia valore
|
|
@@ -4494,7 +4506,7 @@ class DbgetterComponent {
|
|
|
4494
4506
|
this.reload = false;
|
|
4495
4507
|
this.QueryEditorComponent.inputParams.config.record = this.record;
|
|
4496
4508
|
this.QueryEditorComponent.inputParams.config.field = this.field;
|
|
4497
|
-
setTimeout(() => { this.reload = true; console.log("RELOADED QUERYEDITOR"); },
|
|
4509
|
+
setTimeout(() => { this.reload = true; console.log("RELOADED QUERYEDITOR"); }, 3000);
|
|
4498
4510
|
}
|
|
4499
4511
|
checkRelations() {
|
|
4500
4512
|
this.relationsLoaded = this.relations.find(x => x.loaded) != null;
|