SN-record-picker very slow

TT3
Kilo Guru

See below code for SN-Picker widget, it keeps spinning and doesn't show any result. Any idea where I am wrong?

<sn-record-picker 
                id="sourceUser" 
                field="sourceUser" 
                table="sys_user" 
                display-field="'name'"
                value-field="'sys_id'" 
                search-fields="'name'" 
                page-size="10" 
                default-query="'active=true'">
</sn-record-picker>

 

1 ACCEPTED SOLUTION

AnirudhKumar
Mega Sage
Mega Sage

Hello TT,

Just one small error in your code. The table attribute is missing extra quotes.

Change 

table="sys_user" 

to

table="'sys_user'" 

View solution in original post

2 REPLIES 2

Yousaf
Giga Sage

Hi TT,

Check if these could help.

Reference field snRecordPicker: Performance Tips for ServicePortal/Angular Directive

how to Increase performance using sn-record-picker in service portal


Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***

AnirudhKumar
Mega Sage
Mega Sage

Hello TT,

Just one small error in your code. The table attribute is missing extra quotes.

Change 

table="sys_user" 

to

table="'sys_user'"