Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to change the sort order of a Lookup Select Box Variable type?

Poorna7
Tera Expert

I have created a variable of Lookup Select Box type in which  look up value field(Available Shift)is a choice type field . I have used below variable attribute but it is not showing in the correct sequence as defined in the choice field:

find_real_file.png

find_real_file.png

Variable attribute:

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=office_location;date;shift_type,ref_ac_columns_search=true,ref_ac_order_by=sequence

 

find_real_file.png

 

Can someone please help how to show the timings in the dropdown sequence wise.

30 REPLIES 30

Hi,

try to add this in the Reference qualifier at the end

ORDERBYsequence

Below configuration worked for me

find_real_file.png

find_real_file.png

Regards
Ankur

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

The solution you provided actually does not work, however, because incidents are in alphabetical order anyway, it appeared as a solution. Thank you for the effort regardless.

hammad ul aziz2
Mega Guru

@Akansha 

       try 

AJAXTableCompleter,ref_ac_columns=office_location;date;shift_type,ref_ac_columns_search=true,ref_sequence=sequence 

instead of ref_ac_order_by=sequence, let me know if that works!!

nopes it didn't work. I change the order of choices and use ref_sequence=sequence but it still didn't work.

I tried by changing the order in the choice table but it didn't work:

find_real_file.png

find_real_file.png

 

find_real_file.png

 

is sequence a custom field?

whats the backend name of sequence field can you confirm that please.