The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Data Resource for the Select component

Steve Stivers1
Tera Contributor

I am working in UI Builder on Tokyo. I want to use the Select component to show a list of all the active users in our sys_user table to allow an agent to select a user and assign an asset to them.

When I use the look up records type of data resource the output does not work for the Select component. The array of DR objects do not match the object definition required by the Select component.

 

Is there a better type of DR or do I need to create a transform DR?

2 REPLIES 2

Brad Tilton
ServiceNow Employee
ServiceNow Employee

How many users are you returning? It seems like you might see a performance hit if you're returning thousands of records and trying to bind all of them to a select component.

You'll likely need to transform the data from the way the look up records data resource returns it into a format that the select component expects. How are you doing that now?

I just got back to working on this project. I did create the transform data source. It was worse than you thought. When I let all ~9000 user records bind to the select component my browser would not display the page and said it had run out of memory. When I limited the number of records to 100 it ran fine.

I liked the idea of the select component because it has the search function. 

 

Back to the drawing board. Any thoughts on how to replicate this function? Maybe a text input box that filters the users displayed in a list?