Sort order on variables and variables sets

Thomas G
Tera Guru

Hi,

Let's say that I have a Catalog Item containing two Variable Sets. Each set contains lots and lots of variables. For simplicity's sake let's just say that I have 'Variable Set 1' and 'Variable Set 2'.

 

I need those variables separated in two Variable Sets because it makes it a whole lot easier to configure Catalog UI Policies with Catalog UI Policy Actions that does something on all variables in one of those Variables Sets. I can simply just pick the whole set. Without a set I have to configure a UI Policy Action for each and every variable and that takes a lot of time.

Now, let's say that in Variable Set 1 I have those variables:
Variable 1a
Variable 1b

Variable 1c

In Variable Set 2 I have those variables:

Variable 2a
Variable 2b

Variable 2c

I need those variables sorted like this on Catalog Item view:
Variable 1a (order 10)
Variable 2a (order 20)
Variable 1b (order 30)
Variable 2b (order 40)
Variable 1c (order 50)
Variable 2c (order 60)

It works if all variables are in the same Variable Set but not if they are separated. It seems that ServiceNow honors sort order of the variable set instead of sort order of variables inside those sets. Why is that? Is there a system property or something that can change that behaviour? 

Best regards
Thomas 

1 REPLY 1

mattystern
Kilo Sage

Hi Thomas,

 

I'm not sure this is possible. Reference of a similar question here: HERE. This is also my understanding. I believe that it is best to think about the order of the variable set as what places it and the order of the variables inside of the variable set as the thing that orders those variable. For further reading, see this document.

 

-Matt