ui_reference - Auto Complete Feature, I have a input field in a UI page, I would like to have autocomplete feature for that filed , I am aware that i can use <g: ui_reference ... > but i don't want lookup button. How we can achieve this ?

karthik41
Tera Contributor

I would like to have <g:ui_reference >in ui page but without lookup button or alternative way to achieve this ? any suggestion please.

1 ACCEPTED SOLUTION

SatheeshKumar
Kilo Sage

you can use the auto complete feature in macro by adding required attributes.

ui_reference is a ui macro having support for attributes .. completer,columns.

 

Ex:

<g:ui_reference name="my_var" query="active=true" id="u_name" table="sys_user" attributes="ref_ac_columns=display_name,ref_auto_completer=AJAXTableCompleter" style="width:180px"/>

find_real_file.png

Result:

find_real_file.png

View solution in original post

1 REPLY 1

SatheeshKumar
Kilo Sage

you can use the auto complete feature in macro by adding required attributes.

ui_reference is a ui macro having support for attributes .. completer,columns.

 

Ex:

<g:ui_reference name="my_var" query="active=true" id="u_name" table="sys_user" attributes="ref_ac_columns=display_name,ref_auto_completer=AJAXTableCompleter" style="width:180px"/>

find_real_file.png

Result:

find_real_file.png