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

I want to display fields other than numbers when I refer to the knowledge table.

Takuto Kuramoch
Tera Contributor

I am a novice developer.
Please help me with the following question.

 

I would like to display fields other than numbers when I browse the Knowledge Table from a catalog item in the Service Portal.

 

ref_ac_columns=number;short_description,ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true

 

 

If I put the following script in the variable, I could add fields other than number.
However, it is time-consuming to set that script in each catalog item, so I would like to set it in the table dictionary.
I set the same script as above in the dictionary, but only numbers were displayed. I would like to know how to set up the dictionary of the table to display fields other than number.

 

kb_knowledge_dictionary_entry.png  

portal_display.png

Thank you.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

if you set it in dictionary then it will only work for reference fields which are on table which refers to knowledge table

It won't work for Reference/list collector variables on catalog item

Variable and fields are different in nature.

So you need to do it for every reference variable which refers knowledge table and add that in variable attributes.

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

View solution in original post

4 REPLIES 4

Arava Gopi
Tera Contributor

Hi Takuto,

I hope below steps will help you to solve the above issue.
1) Go to your catalog form field & open it.

2) Go to Type Specifications & under variable attributes provide the list of fields you want to see in catalog form.

 

Because fields on table & catalog variables are different, so you need to provide fields individually in catalog form variables under variable attributes.

 

AravaGopi_0-1665647080669.png

If it answers your question, please mark it as helpful/correct.

 

Thanks & Regards,

Gopi

 

Hi Gopi,

 

Thank you for your instruction.
I see that the only way is to set each variable individually.
I will implement it the way you taught me.

 

Thank you.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

if you set it in dictionary then it will only work for reference fields which are on table which refers to knowledge table

It won't work for Reference/list collector variables on catalog item

Variable and fields are different in nature.

So you need to do it for every reference variable which refers knowledge table and add that in variable attributes.

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

Hi Ankur,

Thank you for your instruction.

I understand that the setting in the dictionary will not work.
I will describe the setting in each variable attribute.

Thank you.