Catalog Item Attributes

Naveen87
Tera Guru

Hello Developers,

 

What are these Attributes on catalog item?

How do we use them?

 

I have a situation,

I have created a reference field in the item referring to 'cmdb_ci_business_app' table & there is a custom field on the table called 'A-Code'.

Naveen87_0-1716543709825.png

 

On the Portal I wish to show the Name & A-Code of the Business App records

Naveen87_1-1716543756544.png

 

 

These 2.

Naveen87_2-1716543816476.png

 

Please guide me on what should be added under Attributes to display both Name & A-Code.

 

Thank you in Advance.

 

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi Naveen,

 

Here is a list of variable attributes

Service Catalog variable attributes (servicenow.com)

 

You need the attributes below to fulfill your requirement

ref_ac_columns

ref_auto_completer

 

 

It should be something like this

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=<field name>;<field name>

 

-Anurag

View solution in original post

7 REPLIES 7

Add the field names here

 

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=<field name>;<field name>
-Anurag

I had mentioned both the variables

Name & A Code.

Naveen87_0-1716811143106.png

It's reflects both variables when searching but post selecting only Name is stored on the variable.

 

Naveen87_1-1716811190396.png

 

Is it possible to store both Name & A Code?

EX:- 4C Project    A00000000

 

If yes, What extra should be added to Attribute?

Please suggest.

 

After you select it will show only 1 , which is the display value for the table being referenced.

That cannot be changed.

What you can do is maybe create a read only variable and using an on change client script , fetch the other value and populate it in this field.

-Anurag