Regarding to display CI name and serial numebr in same field

Avinash_M
Tera Contributor

Hello Team,
I have a requirement in service catalog, The CI name and serial number of same CI should be visible in CI field.
Example: CI - Serial number (abc1234 - 009988776).
Is it possible? I have written script include client callable over reference field type but its not working,getting serial number in log but its not setting up over CI Name field, is there anyways?

1 ACCEPTED SOLUTION

Hi @Avinash_M 

Yes, that is expected. In a variable, only one value will display, and that’s based on the display value. You can search using two values, but the display will always be based on one value.”

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Do you mean two values in two columns, or do you want to search based on any one of these values? If it’s the first case, then I think you need to concatenate and store those values in a third field. If it’s the second case, you’ll need to add an attribute.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG  - yes I should display over the same field, i have used the following variable attribute, i could see in drop down both serial number and CI name but once I select the CI then I can see only serial number. 
variable attrbute:ref_auto_completer=AJAXTableCompleter,ref_ac_columns_search=true,ref_ac_columns=name;serial_number

Hi @Avinash_M 

Yes, that is expected. In a variable, only one value will display, and that’s based on the display value. You can search using two values, but the display will always be based on one value.”

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

yes, but through script include and client script i can able to display over the same field, thanks for your response.