Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1690000000/f1fd9460-aa0a-4cd7-93ef-cd21f0714d5e.png?itok=5ZPgqFUP)
QBE
GB
Last activity: 26 Jan 2018 11:35 EST
Wild card search on report definition where condition
All,
We need to build a advanced search functionality with more than one search criteria. Facing difficulties in implementing wild card kind of where condition in report definition. See if you could share some ideas for below issue.
Consider a table like below,
Employee ID | Employee Name | Company Name | Area Name | City |
1000001 | Frank Silver Wright | ABC Corp Ltd | Bishopgate | London |
1000002 | Frank Gold Wright | ABC Corp International | Liverpool Street | London |
1000003 | Frank Silver Cor | ABC Ltd | Moorgate | London |
Search Section having two fields, like below,
Employee Name :
Company Name :
1.) When the search is done with following values,
Employee Name : Frank
Company Name : ABC
Result should contain all the 3 rows from the above table.
2.) When search is done with following values,
Employee Name: Frank Wright
Company Name: ABC Ltd
All,
We need to build a advanced search functionality with more than one search criteria. Facing difficulties in implementing wild card kind of where condition in report definition. See if you could share some ideas for below issue.
Consider a table like below,
Employee ID | Employee Name | Company Name | Area Name | City |
1000001 | Frank Silver Wright | ABC Corp Ltd | Bishopgate | London |
1000002 | Frank Gold Wright | ABC Corp International | Liverpool Street | London |
1000003 | Frank Silver Cor | ABC Ltd | Moorgate | London |
Search Section having two fields, like below,
Employee Name :
Company Name :
1.) When the search is done with following values,
Employee Name : Frank
Company Name : ABC
Result should contain all the 3 rows from the above table.
2.) When search is done with following values,
Employee Name: Frank Wright
Company Name: ABC Ltd
Result shall contain only Row 1.
The search should match all the words in search string against corresponding column value, even if the words in search string are not in same sequence as the column value.
3.)
When search is done with following values,
Employee Name: Frank Silver
Company Name: ABC
Result shall contain only Row 1 and Row 3.
Approach:
We were trying to build a report definition with where condition type of "Contains" on each column, however this works for scenario 1 & scenario 3. But not for scenario 2.
Any pointers on how to achieve this with a report definition is much appreciated.
More info:
This report definition is called from a Data page.
Using Pega 7.2
***Edited by Moderator Marissa to update categories***