@eqproject/eqp-dynamic-module 2.10.75 → 2.10.76
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/README.md +5 -1
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +12 -4
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +12 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +11 -3
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15779,10 +15779,18 @@ class AddFormFieldComponent {
|
|
|
15779
15779
|
if (data == null && this.field.DataGetter.DataGetterValue != null) {
|
|
15780
15780
|
data = this.field.DataGetter.DataGetterValue;
|
|
15781
15781
|
}
|
|
15782
|
-
if (data
|
|
15782
|
+
if (data == null || typeof data === "undefined")
|
|
15783
|
+
return;
|
|
15784
|
+
// V2 (DataGetterCodeVersion === 2): selectedFields è dentro queryCommandDatabaseConfiguration
|
|
15785
|
+
const isV2 = data.DataGetterCodeVersion === 2;
|
|
15786
|
+
const selectedFields = isV2
|
|
15787
|
+
? data.queryCommandDatabaseConfiguration?.selectedFields
|
|
15788
|
+
: data.selectedFields;
|
|
15789
|
+
if (selectedFields != null && typeof selectedFields != "undefined") {
|
|
15783
15790
|
this.columnKeys = new Array();
|
|
15784
|
-
|
|
15785
|
-
|
|
15791
|
+
selectedFields.forEach((key) => {
|
|
15792
|
+
const label = key.CurrentTranslate || key.PropertyName;
|
|
15793
|
+
this.columnKeys.push({ key: key.DatabaseTableName + "_" + key.PropertyName + "__" + label.replace(" ", "_"), value: label });
|
|
15786
15794
|
});
|
|
15787
15795
|
}
|
|
15788
15796
|
}
|