@eqproject/eqp-dynamic-module 2.10.40 → 2.10.42

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.
@@ -5889,8 +5889,14 @@ class DbgetterComponent {
5889
5889
  keyused = key;
5890
5890
  }
5891
5891
  else {
5892
- valueToBeSet = row[this.field.DataGetter.DataGetterColumnForce.key];
5893
- keyused = this.field.DataGetter.DataGetterColumnForce.key;
5892
+ if (row.hasOwnProperty(this.field.DataGetter.DataGetterColumnForce.key)) {
5893
+ valueToBeSet = row[this.field.DataGetter.DataGetterColumnForce.key];
5894
+ keyused = this.field.DataGetter.DataGetterColumnForce.key;
5895
+ }
5896
+ else if (row.hasOwnProperty(key)) {
5897
+ valueToBeSet = row[key];
5898
+ keyused = key;
5899
+ }
5894
5900
  }
5895
5901
  if (valueToBeSet == null) {
5896
5902
  valueToBeSet = "";
@@ -5912,6 +5918,9 @@ class DbgetterComponent {
5912
5918
  }
5913
5919
  else {
5914
5920
  GlobalService.debugLog("ho multiselect");
5921
+ if (this.selectedElements == null) {
5922
+ this.selectedElements = new Array();
5923
+ }
5915
5924
  if (this.selectedElements.find(x => x.ID == row['ID']) == null) {
5916
5925
  GlobalService.debugLog("ho più di una risposta");
5917
5926
  // E' un elenco generico dbgetter multiselect