How to wire up a data set to a data resource in UI Builder

kbridgeman007
Tera Contributor

Installed Version: Vancouver

 

I've looked everywhere online to figure this out.  All examples of using data resources navigate to a specific record instead of showing how to reference the entire result set.

 

I have setup a data resource: project_data_1.  Very simple: lookup_records pm_project max records: 4.  The JSON is displayed in the resource box.  I pulled two fields: number, and project_name.  No meta-data.

 

I have dropped a data set component on my page.  I have modified the Data field referencing the data binding: 

@Data.project_data_1.results
I also tried @Data.project_data_1
 
The Data Broker State is not touched; i.e. empty.
I have no events.
I have no over-riding CSS.
 
Nothing gets displayed. 
 
No idea what I need to do.  The ServiceNow docs for this component are worthless (sorry). 
A link to a video or article showing wiring up this component would be awesome.  
 
 
1 REPLY 1

Dibyaratnam
Tera Sage

@kbridgeman007 , just go through the Data sample in the link. Your data also should be in similar format, only then the Data set component will show results. Simply binding the data source won't work as it's a lookup record Data source. Rather I would suggest you to create a Transform Data source and create the structure as required and bind the result to the Data set Data field.

https://developer.servicenow.com/dev.do#!/reference/next-experience/vancouver/now-components/now-dat...