Show attributes in a reference variable

cuchi
Mega Guru

Hi There,

I hope everyone is ok these days.

I have a catalogue item with a variable which is a reference field to "cost centre" table.

When filling out the form i start typing in the cost centre field and displays the "name" and the "code" fields.

I added the business unit field as we could have the same name for different BUs, but it is not coming up.

it appears that shows two fields only.

Is this correct or i am doing something wrong?

ref_ac_columns=u_business_unit,name;code,ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter

I changed the order but only shows the "name" and one of the other two.

 

regards,

Max

 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi

I think you have a  typo. Several values of one attribute have to be separated by a semikolon, vut in the first attribute you have a comma

Not: 
ref_ac_columns=u_business_unit,name;code,ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter

Correct:
ref_ac_columns=u_business_unit;name;code,ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter

The rest looks fine. Check https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/reference-... for more information

Maik

View solution in original post

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Hi

I think you have a  typo. Several values of one attribute have to be separated by a semikolon, vut in the first attribute you have a comma

Not: 
ref_ac_columns=u_business_unit,name;code,ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter

Correct:
ref_ac_columns=u_business_unit;name;code,ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter

The rest looks fine. Check https://docs.servicenow.com/en-US/bundle/sandiego-platform-administration/page/administer/reference-... for more information

Maik

Abhay Kumar1
Giga Sage
Hi Cuchi, Please try like this , ref_ac_columns=u_business_unit;name;code,ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter Hope this will help you.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Point mentioned by Maik is valid. Please check the same.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader