Wednesday, May 23, 2012

AutoComplete on Watch Lists

Something I didn't know that I discovered today is that the auto completion and autocompletion attributes (as you can see on the left) that you can add to a reference field can be added to a watch list (glide_list) field.

The functionality is useful because it allows you to see other attributes of a user while you're searching in the reference field etc. You can read how the functionality works on the wiki here.





Basically the following line can be added to the dictionary attributes of a field (for a sys_user reference): 

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=user_name;email,ref_ac_columns_search=true

This will give you the user_name field and the email field (in that order) displayed after the display field. The second attribute (ref_ac_columns) lets you specify if these attributes will be used in the search as well (in this case "true").

No comments: