- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2016 11:33 PM
I am trying to create a simple search filter on the Service Portal.
I have cloned the data table widget and added a search filter. Changes made have been highlighted.
Could you let me know what is wrong? Since the Search is not working here.
Expected is to get list of all incidents with the word network available in any of the columns listed. I do not want to use Keyword Search since its a server side search and is pretty slow and also does not allow search on Date fields and common terms.
Regards,
Nisha
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2016 06:21 AM
Can you replace the repeat statement with below line and try it
<tr ng-repeat = "item in data.list | filter: data.list.searchText track by item.sys_id">

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2016 01:59 AM
Hi,
Try using ng-model ="searchText" only and change in filter : searchText
Hope it helps.
Akhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2016 02:06 AM
Already tried that. It dint work ☹
After changing the ng-model do I need to make any changes in the Client Script / Server Script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2016 03:25 AM
Also, this behavior is only when I have cloned the DataTable widget and then add this code.
If I create a new widget from scratch and query they incident table then the filter works fine.
But I want to re-use the functionalities of the DataTable and add additional free text search feature.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2016 06:21 AM
Can you replace the repeat statement with below line and try it
<tr ng-repeat = "item in data.list | filter: data.list.searchText track by item.sys_id">