The CreatorCon Call for Content is officially open! Get started here.

Can I search different value from one reference field?

zulhiyatiuwi
Tera Expert

Hello..

I have a field in portal that reference to cost center table. I set display = true for coce, so reference field will show cost number code.

find_real_file.png

 

i want to know, can i search using code or name of cost center in field that reference to cost center table??

find_real_file.png

 

thank you. and please help

 

1 ACCEPTED SOLUTION

Mike Patel
Tera Sage

Yes, you can add attribute to the field or variable where you want to search by code.

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

View solution in original post

4 REPLIES 4

Akshay14
Tera Guru
 

Hi,

Yes, you can search on different field for reference field. display = true is used to display field so that you can only display one field but you can always search for different fields.

You might find below links useful.

For SC variables - Variable attributes

For fields - dictionary attributes

Thanks,

Akshay

 

thank you for your help.... 😄

Mike Patel
Tera Sage

Yes, you can add attribute to the field or variable where you want to search by code.

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

thank you for your help... 😄