Variable attributes

abhisek
Tera Contributor

Hi All,

I have created a catalog variable which refers to requested item table and set the simple reference qualifier as state is closed complete and catalog item is 'abc'. In addition need to display the column opened, requested for and 'select business application' which is a variable of the catalog item 'abc'.

I have set the Variable attributes like:

ref_ac_columns=opened;requested_for;select_business_application,ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter

 

Opened and requested for are populating but business application is not populating.

Could you please help me out.

Thanks&Regards,

Abhisek Chattaraj.

2 ACCEPTED SOLUTIONS

Viraj Hudlikar
Giga Sage

Hello @abhisek  

You can use below:

 

ref_ac_columns=number;opened_at;variables.variablename;

 

 

If the above does not work you can make the field as select box instead of reference and follow the steps mentioned in the below thread by @Bernd Hoffmeier 

Show RITM variable values as variable attributes i... - Page 2 - ServiceNow Community

Solved: Re: Show catalog item variables in columns on refe... - ServiceNow Community

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

@abhisek  

I tried with Lookup select box and it showed me the variable value

I had 2 RITMs with that variable populated and it showed me

Use it in Lookup label field(s)

 

AnkurBawiskar_1-1739182162844.png

 

AnkurBawiskar_0-1739182098045.png

I was able to search as well using that variable value

AnkurBawiskar_2-1739182187807.png

 

I believe I have answered your question.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

14 REPLIES 14

@abhisek  

okay so on lookup label field you want to see Business application variable value?

if yes then why? there could be same Business app value selected in multiple RITMs

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Ankur Bawiskar
Tera Patron
Tera Patron

@abhisek  

you can include variable in variable attributes but this won't work if it's part of MRVS

The below should work if you are giving correct variable name

ref_ac_columns=opened;requested_for;variables.select_business_application,ref_ac_columns_search=true,ref_auto_completer=AJAXTableCompleter

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar 

It is part of single row variable set but still not working.

Thanks&Regards,

Abhisek Chattaraj.

@abhisek  

Seems it's not supported by the platform to add and search on variables in reference variable.

I just tried and it didn't work.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hi @Ankur Bawiskar 

Thanks for your reply. The variable select_business_application refers to another table.

Thanks&Regards,

Abhisek Chattaraj