Search by approximate name in a reference variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2022 06:48 AM
Hello everybody,
We have a field called Configuration item that references our CMDB,
It does a search for the exact name, but I would like it to do a search with approximate,
The same already occurs when I insert the (*)
I appreciate any help.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2022 07:22 AM
The image links look to be broken, but if I understand the ask, it's to be able to use a reference field, where you type in and the search pulls back results based on a "contains" search rather than a "start with" search. If that's the case, here's some instructions on how to go about doing that:
- Disable the glide.ui.ref_ac.startswith system property . See Improving Auto-Complete Queries.
- Navigate to User Administration > User Preferences.
- Select the preference "'<referenced table>.autocomplete.contains"'.
- Set the value field to true.
- Log out and log back in to immediately display the updated search.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2022 07:29 AM
Hi,
what does approximate mean?
images are broken
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2022 04:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2022 05:10 AM
Hi,
did you give this in the field attributes i.e. ref_ac_columns
ref_auto_completer=AJAXTableCompleter, ref_ac_columns_search=true, ref_ac_columns=u_fieldName
Auto-complete for reference fields
You can use wildcard search using asterisk
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader