Reference field query

joshmorris
Tera Guru

joshmorris_0-1778495893320.png

Currently, on this reference field when typing it shows results from the 'name' field. How can I get it so when i type it also brings back results from 'code' field. If that makes sense?

2 ACCEPTED SOLUTIONS

Nilesh Pol
Kilo Sage

@joshmorris Usually this type of autocomplete search mostly works on display field i.e. name.

If you also want it to search by another field like Code, then you can use Attribute on reference field.

 

ref_ac_columns = code;  OR = code, name // shows both; 

ref_ac_columns_search = true;

 

 

View solution in original post

Ankur Bawiskar
Tera Patron

@joshmorris 

in the dictionary add this

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=code,ref_ac_columns_search=true,ref_ac_order_by=name

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

View solution in original post

3 REPLIES 3

Nilesh Pol
Kilo Sage

@joshmorris Usually this type of autocomplete search mostly works on display field i.e. name.

If you also want it to search by another field like Code, then you can use Attribute on reference field.

 

ref_ac_columns = code;  OR = code, name // shows both; 

ref_ac_columns_search = true;

 

 

Ankur Bawiskar
Tera Patron

@joshmorris 

in the dictionary add this

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=code,ref_ac_columns_search=true,ref_ac_order_by=name

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

Tanushree Maiti
Tera Patron

Hi @joshmorris 

 

Navigate to sys_dictionary.list in Application navigator

Search for your code field.

update following in the attribute field

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=code,ref_ac_columns_search=true
If you want sort the list based on your field,  append ref_ac_order_by=code   or ref_ac_order_by=name
 
Screenshot 2026-05-11 170051.png