based on item it's possible to change common variable refrence qualifier

mani55
Tera Contributor

we have two catalogs items but both items we are using one common variable set. in that variable set we have one variable so in that variable we need change refrence qualifier based on item how we can archive these 

 

 

item: A

mani55_0-1691643668579.png

Item:B

 

javascript:'u_type_of_licenseINcustomer^u_end_of_lifeISEMPTY^ORu_end_of_life>javascript:gs.endOfToday()';

 

so please let me know in common variable how we can change refrence qualifier based on item

 

 

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@mani55 

in the reference qualifier it would be difficult to know the catalog item

Why not have it as separate variable on each catalog item?

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

HI ankur,

 

We have 2 columns "List of Software". The owner is asking me  only 1 column to list the software for A and B. Is it possible to use the same variable ?

 

mani55_0-1691644862301.png

 

Prince Arora
Tera Sage
Tera Sage

@mani55 

 

When you're dealing with similar needs for different items in a list, it's a good idea to use a variable set. This helps keep things organized and consistent. However, if you're dealing with two different filters, it's best to use two separate variables. This makes things clearer and easier to manage.

 

Still if you want to implement it, you can use as below:

 

current.cat_item == "SYS_ID_OF_ITEM"

 

PrinceArora_0-1691648584594.png

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.