How to change reference display value on list view only on one table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2022 02:30 AM
Hello,
I have a table on which I need to change display value of Location, which is a reference to cmn_location table. Right now there is a name displayed, but I want to display the 'city' attribute instead.
I want to change the display rule only on this one table, so I can't just change the Display attribute in cmn_location dictionary to 'city' attribute.
Any ideas? Maybe I can override it with reference qualifiers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2022 02:44 AM
Hi Bartłomiej Z
If you change the display value of cmn_location table then those changes will be applied accross your instance where this field is referenced or accessed from back-end.
Instead you can add additional attributes for that field so that along with name you can show city too
samplee:
ref_auto_completer=AJAXTableCompleter,ref_ac_columns=u_field1;u_field2;u_field3,ref_ac_columns_search=true
https://snprotips.com/blog/2016/2/22/referencelist-attributes
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2022 04:29 AM
Hi,
thanks for tip, it works fine for searching by 'city' attribute, but I still need to change the display value
example:
Here, I need to display 'Gordon' instead of '#2 FILTER', and as you mentioned, I can't change the display value in dictionary of cmn_location, because it will change across the whole instance