@eqproject/eqp-dynamic-module 2.3.23 → 2.3.25
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/form-records/add-form-record/add-form-record.component.mjs +13 -3
- package/esm2020/lib/components/private/form-records/list-view-form-record/list-view-form-record.component.mjs +2 -2
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +13 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +13 -3
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3009,12 +3009,22 @@ class AddFormRecordComponent {
|
|
|
3009
3009
|
field.ValuePairs = this.stringToValuePairs(field.ValueString);
|
|
3010
3010
|
}
|
|
3011
3011
|
let inverted = {};
|
|
3012
|
-
|
|
3012
|
+
this.debugLog("(<ListValueField>foundObject).ValuePairs", field.ValuePairs);
|
|
3013
3013
|
for (let key in field.ValuePairs) {
|
|
3014
3014
|
inverted[field.ValuePairs[key]] = key;
|
|
3015
3015
|
}
|
|
3016
3016
|
field.ValuePairs = inverted;
|
|
3017
|
-
|
|
3017
|
+
if (record[field.Name].length) {
|
|
3018
|
+
let value = "";
|
|
3019
|
+
record[field.Name].forEach((element, i) => {
|
|
3020
|
+
value += field.ValuePairs[element];
|
|
3021
|
+
value += i == record[field.Name].length - 1 ? "" : ", ";
|
|
3022
|
+
});
|
|
3023
|
+
outputValuesArray[field.Name] = value;
|
|
3024
|
+
}
|
|
3025
|
+
else {
|
|
3026
|
+
outputValuesArray[field.Name] = field.ValuePairs[record[field.Name]];
|
|
3027
|
+
}
|
|
3018
3028
|
console.log("outputValuesArray", outputValuesArray);
|
|
3019
3029
|
}
|
|
3020
3030
|
else {
|
|
@@ -3939,7 +3949,7 @@ class ListViewFormRecordComponent {
|
|
|
3939
3949
|
});
|
|
3940
3950
|
}
|
|
3941
3951
|
openGraphs() {
|
|
3942
|
-
this.router.navigate(['dynamic-module-graphs']);
|
|
3952
|
+
this.router.navigate(['dynamic-module-graphs/' + this.formID]);
|
|
3943
3953
|
}
|
|
3944
3954
|
onAddSaveRecord(record) {
|
|
3945
3955
|
if (this.openAddDialogRef != null) {
|