Custom widget Data Table from Instance Definition keyword search not showing

Oliver Anderson
Kilo Sage

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:

OliverAnderson_0-1695745811835.png

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:

OliverAnderson_2-1695745933128.png

=========

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:

OliverAnderson_3-1695746561298.png

======

EDIT:

For reference, this is what I'm looking for:

OliverAnderson_0-1695746677335.png

 

3 REPLIES 3

Oliver Anderson
Kilo Sage

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.

OliverAnderson_0-1695923291342.png

 

Stephen Anderso
Tera Expert

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.

 

Amruta007
Tera Contributor

Hi @Stephen Anderso  , thanks alot.