@eqproject/eqp-dynamic-module 2.4.28 → 2.4.29

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.
@@ -8530,7 +8530,9 @@ class AddFormFieldComponent {
8530
8530
  }
8531
8531
  ngOnInit() {
8532
8532
  this.configureColumns();
8533
- this.createColumnKeys();
8533
+ if (typeof this.field.DataGetterValue != "undefined" && this.field.DataGetterValue != null) {
8534
+ this.createColumnKeys(this.field.DataGetterValue.Params);
8535
+ }
8534
8536
  if (!this.fieldTypesToExclude.includes(FieldTypeEnum["Form di dettaglio"])) {
8535
8537
  this.fieldTypesToExclude.push(FieldTypeEnum["Form di dettaglio"]);
8536
8538
  }
@@ -9435,7 +9437,7 @@ class AddFormFieldComponent {
9435
9437
  else {
9436
9438
  this.httpClient.get('./assets/mockups/mockedFromQueryEditor_QUERY_WITHOUT_QUESTION.txt', { responseType: 'text' })
9437
9439
  .subscribe(mockedFromQueryEditor => {
9438
- this.treatDataFromQueryEditor(JSON.parse(mockedFromQueryEditor));
9440
+ this.treatDataFromQueryEditor(JSON.parse(mockedFromQueryEditor).Params);
9439
9441
  });
9440
9442
  }
9441
9443
  }
@@ -9455,12 +9457,13 @@ class AddFormFieldComponent {
9455
9457
  }
9456
9458
  treatDataFromQueryEditor(data) {
9457
9459
  this.field.DataGetterValue = data;
9458
- this.createColumnKeys();
9460
+ console.log("data on field.DataGetterValue", data);
9461
+ this.createColumnKeys(data);
9459
9462
  console.log("event out on dynamic module for saving", data);
9460
9463
  }
9461
- createColumnKeys() {
9462
- if (this.field.DataGetterValue != null) {
9463
- this.field.DataGetterValue.Params.selectedFields.forEach((key) => {
9464
+ createColumnKeys(data) {
9465
+ if (data != null && typeof data != "undefined" && typeof data.selectedFields != "undefined") {
9466
+ data.selectedFields.forEach((key) => {
9464
9467
  this.columnKeys.push({ key: key.DatabaseTableName + "_" + key.PropertyName + "__" + key.CurrentTranslate.replace(" ", "_"), value: key.CurrentTranslate });
9465
9468
  });
9466
9469
  }