Custom widget Data Table from Instance Definition keyword search not showing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 09:43 AM - edited 09-26-2023 09:44 AM
I have a custom Data Table from Instance Definition widget on a page in the Service Portal.
I am trying to display a keyword search on the list so that users can filter the records in the list. I have seen this implemented on other posts using the options.show_keywords = true; option in the Server Script on the custom widget. However, after adding this line it is still not showing up on the widget:
Here is the Server Script on the custom widget. Everything is OOB from the cloned widget, except for the added options.show_keywords = true; line:
=========
I even looked through the base Data Table widget Angular HTML to find the <div> for the keyword search, as mentioned in another post (can't find the link). It seems like if options.show_keywords is true, then the <div> should appear on the widget, so I'm not sure why it isn't working:
======
EDIT:
For reference, this is what I'm looking for:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2023 10:48 AM
I found it!
It was right in front of me the whole time. Never checked the Client Controller on the Data Table from Instance Definition, but right here it is passing 'sp' as the view by default. Changing it to the view I wanted passed it to the opened record URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 09:26 AM
I see you were able to change the view but did you ever get the keyword search to appear for this table? I have read that a text index on the table is required and ServiceNow by default turns off text indexing on the CMDB table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 03:05 AM
Hi @Stephen Anderso , thanks alot.