@adins/ucsearch 3.4.10 → 3.5.0
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.
|
@@ -743,17 +743,29 @@ class UCSearchComponent {
|
|
|
743
743
|
let dataFile = new Array();
|
|
744
744
|
let additionalExportList = new Array();
|
|
745
745
|
let excludeExportList = new Array();
|
|
746
|
+
const mappedConfNameValue = {};
|
|
747
|
+
this.configuration.component.forEach((x) => {
|
|
748
|
+
mappedConfNameValue[x.name] = {
|
|
749
|
+
value: x.value,
|
|
750
|
+
};
|
|
751
|
+
});
|
|
746
752
|
// Inject whereQuery for where criteria
|
|
747
753
|
if (this.searchInput.whereValue != undefined && this.searchInput.whereValue.length != 0) {
|
|
748
754
|
this.configuration.querystring.whereQuery = new Array();
|
|
749
755
|
for (let x = 0; x < this.searchInput.whereValue.length; x++) {
|
|
750
|
-
|
|
756
|
+
// read value based on search component value - if not found, will hardcoded
|
|
757
|
+
const _val = mappedConfNameValue[this.searchInput.whereValue[x].value] ? mappedConfNameValue[this.searchInput.whereValue[x].value].value : this.searchInput.whereValue[x].value;
|
|
758
|
+
// this.configuration.querystring.whereQuery.push(this.searchInput.whereValue[x].value);
|
|
759
|
+
this.configuration.querystring.whereQuery.push(_val);
|
|
751
760
|
}
|
|
752
761
|
}
|
|
753
762
|
if (this.searchInput.fromValue != undefined && this.searchInput.fromValue.length != 0) {
|
|
754
763
|
this.configuration.querystring.fromQuery = new Array();
|
|
755
764
|
for (let x = 0; x < this.searchInput.fromValue.length; x++) {
|
|
756
|
-
|
|
765
|
+
// read value based on search component value - if not found, will hardcoded
|
|
766
|
+
const _val = mappedConfNameValue[this.searchInput.fromValue[x].value] ? mappedConfNameValue[this.searchInput.fromValue[x].value].value : this.searchInput.fromValue[x].value;
|
|
767
|
+
// this.configuration.querystring.fromQuery.push(this.searchInput.fromValue[x].value);
|
|
768
|
+
this.configuration.querystring.fromQuery.push(_val);
|
|
757
769
|
}
|
|
758
770
|
}
|
|
759
771
|
request.pageNo = pageNo;
|