@eqproject/eqp-dynamic-module 2.10.39 → 2.10.41
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 +4 -1
- package/esm2020/lib/components/private/dynamic-module-field-fix/dynamic-module-field.component.mjs +25 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +27 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +27 -2
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5912,6 +5912,9 @@ class DbgetterComponent {
|
|
|
5912
5912
|
}
|
|
5913
5913
|
else {
|
|
5914
5914
|
GlobalService.debugLog("ho multiselect");
|
|
5915
|
+
if (this.selectedElements == null) {
|
|
5916
|
+
this.selectedElements = new Array();
|
|
5917
|
+
}
|
|
5915
5918
|
if (this.selectedElements.find(x => x.ID == row['ID']) == null) {
|
|
5916
5919
|
GlobalService.debugLog("ho più di una risposta");
|
|
5917
5920
|
// E' un elenco generico dbgetter multiselect
|
|
@@ -6351,11 +6354,33 @@ class DynamicModuleFieldFixComponent {
|
|
|
6351
6354
|
return;
|
|
6352
6355
|
}
|
|
6353
6356
|
if (this.field.FieldType == FieldTypeEnum['Campo di testo']) {
|
|
6354
|
-
|
|
6357
|
+
var valueToPut = null;
|
|
6358
|
+
if (value == null) {
|
|
6359
|
+
valueToPut = null;
|
|
6360
|
+
}
|
|
6361
|
+
else if (Array.isArray(value[0])) {
|
|
6362
|
+
valueToPut = value[0][0];
|
|
6363
|
+
}
|
|
6364
|
+
else {
|
|
6365
|
+
valueToPut = value[0];
|
|
6366
|
+
}
|
|
6367
|
+
console.log("VALUETOPUT campoditesto", value, valueToPut);
|
|
6368
|
+
this.record[this.field.Name] = valueToPut;
|
|
6355
6369
|
}
|
|
6356
6370
|
if (this.field.FieldType == FieldTypeEnum['Elenco generico']) {
|
|
6357
6371
|
GlobalService.debugLog("onSelectedValue FROM DBGETTER ELENCO GENERICO", value);
|
|
6358
|
-
|
|
6372
|
+
var valueToPut = null;
|
|
6373
|
+
if (value == null) {
|
|
6374
|
+
valueToPut = [];
|
|
6375
|
+
}
|
|
6376
|
+
else if (Array.isArray(value[0])) {
|
|
6377
|
+
valueToPut = value[0][0];
|
|
6378
|
+
}
|
|
6379
|
+
else {
|
|
6380
|
+
valueToPut = value[0];
|
|
6381
|
+
}
|
|
6382
|
+
console.log("VALUETOPUT elencogenerico", value, valueToPut);
|
|
6383
|
+
this.record[this.field.Name] = valueToPut;
|
|
6359
6384
|
this.DBGetterFieldsLoaded = false;
|
|
6360
6385
|
setTimeout(() => { this.DBGetterFieldsLoaded = true; }, 1000);
|
|
6361
6386
|
}
|