Ui page Reference field issue

Akiladevi Raje1
Giga Guru

i wanted to have this as reference field also should return the matched assets upon autotype each letter and should display like below 

AkiladeviRaje1_1-1748504153976.png

Below is my code and the screenshot of Ui page (autocomplete matches was not cming 

AkiladeviRaje1_0-1748503919233.png

Code which i am using in Ui page:

<g:ui_reference name="assetLookUp" query="install_statusNOT IN7,8,12^accountISNOTEMPTY^asset_tagISNOTEMPTY" id="assetLookup" table="alm_asset" attributes="ref_ac_columns=asset_tag,ref_auto_completer=AJAXTableCompleter" show_popup="true" show_lookup="true" style="width:50px"/>​

 

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Akiladevi Raje1 

so you have reference field in UI page and you want to search in that with some fields and it should show suggestions?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar yes you are right.

 

@Akiladevi Raje1 

I believe you can only search on the field which is marked Display=true

I can check if I can find something

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Akiladevi Raje1 

you can show fields when they type but auto complete won't work on other field other than field marked as display=true

I tried this

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">

<g:ui_reference name="caller" id="caller" table="sys_user" columns="user_name;email" ref_ac_columns_search="true" completer="AJAXTableCompleter"/>


</j:jelly>

If my response helped please mark it correct and close the thread so that it benefits future readers.

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