in servicenow, i create a variable on catalog item of type list collector and it is showing name only on the catalog to select , reference to cmdb_ci_computer table, i change the variable attributes to ref_auto_completer=AJAXTableCompleter,ref_ac_columns=name;serial_number;asset,ref_ac_columns_search=true but still showing name
Assistant
When you create a List Collector variable in ServiceNow referencing the cmdb_ci_computer table, by default, only the display value of the reference field (usually name) is shown in the selection dialog.
You want the picker to show multiple columns for selection (e.g., name, serial_number, asset) in the autocomplete search or in the popup window.
Key points:
ref_auto_completer=AJAXTableCompleter enables autocomplete for the list collector.
ref_ac_columns=name;serial_number;asset specifies which columns appear in autocomplete suggestions.
ref_ac_columns_search=true enables search on all those columns, not just the name.
Why it might still show only the name field:
The List Collector reference type only supports showing the display value, not multiple columns in the list.
The dropdown or selection dialog typically shows one column - the display value of the reference field.
ref_ac_columns affects autocomplete suggestions only, not the display in the selection dialog itself. The records shown after you click the magnifying glass will still show the default Renderer.
Sometimes table dictionary configuration can affect the display, i.e., what columns show in related lists or reference selectors.
This will show suggestions with those columns in the autocomplete dropdown.
For the magnifying glass (lookup dialog):
The lookup dialog table columns are controlled by the Table's Dictionary attribute reference > Reference specification > List Layout (on the referenced table cmdb_ci_computer).
Go to: System Definition > Dictionary
Filter on cmdb_ci_computer and the name field.
Then check the dictionary attribute: reference, and see if it has a reference qualifier or list layout specified.
Alternatively:
Go to the cmdb_ci_computer table
Click the settings gear icon on the list layout
Add desired columns: serial_number, asset to the list view
These columns will then show when you click the magnifying glass on the reference field.
Summary:
Your autocomplete should show all the columns specified with your attributes — verify autocomplete works as expected.
The dialog window (lookup) columns must be configured via the list layout of the referenced table (cmdb_ci_computer) or via reference dictionary attributes.
The displayed value in the variable field (once selected) will always show the display value (usually name).
You cannot change the display value format via variable attributes; that comes from the referenced table's display value definition.
Additional tip:
If you want to customize the display value of the cmdb_ci_computer table (what shows in the variable field once a selection is made) from name to something like "name - serial_number":
Override the getDisplayValue() function on the table (not recommended generally).
Or create a Display value business rule on the table.
Or concatenate fields in a calculated field and point your reference to that field (complex and often not preferred).