The CreatorCon Call for Content is officially open! Get started here.

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

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

@Anurag Tripathi ,

Is it possible to show both Name & A code in the variable?

 

Currently when we search I can see both Name & A code like below, 

Naveen87_0-1716554959031.png

But when I select, Only Name is shown. Is it possible to show both Name & A code?

Ex:- 4C Project A0000304?

 

 

Please suggest

 

if it is on the same table then you should be able to

-Anurag

Yeah it's on the same table. 

These are 2 Column on same table.

 

What should be added into attribute to get this?