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.

28 REPLIES 28

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

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

find_real_file.png

find_real_file.png

 

find_real_file.png

 

Hi,

try to add this in the Reference qualifier at the end

ORDERBYsequence

Regards
Ankur

 

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

I tried but it didn't work.

 

find_real_file.png

Hi,

please update as this

+ current.variables.shift_type + '^ORDERBYsequence'

Regards
Ankur

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

Updated but it didn't work.

find_real_file.png