- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2022 03:52 PM
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>
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2022 08:12 PM
Hello TT,
Just one small error in your code. The table attribute is missing extra quotes.
Change
table="sys_user"
to
table="'sys_user'"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2022 04:14 PM
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.***

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2022 08:12 PM
Hello TT,
Just one small error in your code. The table attribute is missing extra quotes.
Change
table="sys_user"
to
table="'sys_user'"