Service portal Reference field values in dropdown should show more than 1 columns.. How to configure this ?

sairams
Giga Contributor

Service portal Reference field values in dropdown should show more than 1 columns

 In ESS & Service portal on a maintain item has.

Variable name: configuration item 

variable type: reference to cmdb_ci

Requirement : To show extra fileds like  field2, field3 like (class name , application type etc ) in the drop down 

Suppose we have duplicate ci names then shwing additional fields in dropdown will help to pick right CI ...

Please suggest how to configure more fields in cmdb_ci table...

find_real_file.png

1 ACCEPTED SOLUTION

Hi,

Below is the attribute

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=location,ref_ac_columns_search=true

Above I am searching with location also.

View solution in original post

8 REPLIES 8

rahulpandey
Kilo Sage

Hi, Sairams, Just add below attribute to reference picker and you can display your fields display-fields="'column1', 'column2'" // columns is your field column here.

HI Rahul,

 

Thanks for quick reply.. where do i find reference picker in refernce field.. 

 

Is it in variable attribute setction that you were referrring at ? I tried but it doesnt work..

Hi,

You can add additional columns by setting variable attribute. Please refer below

find_real_file.png

Please mark my answer correct, if it helped you.

Hi,

Below is the attribute

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=location,ref_ac_columns_search=true

Above I am searching with location also.