- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2016 02:08 AM
Hi All,
Is it possible to change the default auto complete and search filter on a referenced field look up list?
We have a 'Configuration Item' reference field on our Incident form that references the CMDB. We have set up reference specification to only reference specific classes; however by default it auto completes on the 'name' field of the CI which we dont use. We want to be able to search by asset tag instead but I don't seem to be able to find a way to change this behaviour. Also clicking the magnifying glass to search provides a list of empty names - it is possible to change the filter each time to find what is required but would be nice if this could be changed by default.
Is it possible?
I've also tried another approach by utilising the name field as a calculated field with the following to create a meaningful name which could be used current.u_asset + " " + current.u_manufacturer + " " + current.model_number + " " + current.u_device_type; (ie Asset001 HP Elitebook Laptop - perfect for the lookup)
This appeared to work, however I soon noticed this had negative impact as we use the name field for Business Services (really the only thing it is used for) and obviously this calculation affected these names ('Undefined Undefined Undefined Undefined' as none of these fields are present).
Is there any other way i can do something like this?
Thanks
Paul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2016 04:09 AM
You can define the columns to be searched against in the Auto Complete using the attribute 'ref_ac_columns'. And set the attribute 'ref_ac_columns_search' to true by which the search can be performed on the these columns defined for auto complete. For more details refer Dictionary Attributes - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2016 01:31 AM
Perfect, set this on the 'cmdb_ci_hardware' table and Bingo!
Thanks for the help guys!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2016 02:25 PM
You gotta set 'Asset Tag' field as display column. But it would apply everywhere the table is referenced.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2016 01:32 AM
Got it! Thanks again Guhan.