Variable attribute for List Collector Variable

Community Alums
Not applicable

Hi All,

I have a list collector variable referencing to the user table. I just need my end user to search the users with the help of userId(user_name) instead of name. What attribute i need to use? 

I have tried glide_list,ref_auto_completer=AJAXTableCompleter,ref_ac_columns=user_name,ref_ac_columns_search=true,ref_ac_display_value=false

It didn't worked. any help on this?

 

Regards,

Sirraj

1 ACCEPTED SOLUTION

Hi,

it should work fine

Portal screenshot i searched with user id

find_real_file.png

find_real_file.png

Regards
Ankur

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

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

this should be fine; But remember this point

1) the display value i.e. name field will still be shown when user types in user name value

2) removal of name from the search is not possible

ref_auto_completer=AJAXTableCompleter,ref_ac_columns=user_name,ref_ac_columns_search=true,ref_ac_display_value=false

Regards
Ankur

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

Community Alums
Not applicable

Hi Ankur @Ankur Bawiskar , 

Thank you for the response. Yes I need to search with name as well as userID. Currently it is working only for name. And the mentioned attribute is not working. When i put user_name (userID), not getting user in the list collector.

Regards,

Sirraj

Hi,

it should work fine

Portal screenshot i searched with user id

find_real_file.png

find_real_file.png

Regards
Ankur

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

Community Alums
Not applicable

Thank you Ankur, it didn't show up in item view. But it worked in portal view, thank you..

Regards,

Sirraj