Data set component setup

task brazil Updated Sep 10, 2026 5 min read data-set-component-uib-setup.md
Raw file servicenow.com

Data set is a list of records within a portal that offer users configurable view types and filter options.

Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see Customize UI Builder pages using components.

Note: This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

Procedure

  1. Define a label for your data set that differentiates it from other components in the content tree.

    A label makes finding the component easier in a large list of components. For instructions on using the content tree, see Manage UI pages and page variants.

    [Omitted image "data-set-config-content-tree.png"] Alt text: Component with label displayed in the content tree

  2. Select the Data set component, using one of these methods:

    • Click anywhere within the component.
    • Select the Data set label you created for your component in the content tree. The property fields appear in the Config tab in the setup panel on the right.

Parent Topic:UIB Setup Information

Data Set component properties

Configure the data, size, and view of the Data set component.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Field

Property

Description

Title

title

Text to introduce the data set.

Data

data

Data to populate the cards in the data set. You can populate the content dynamically by binding to a data resource, or you can manually enter the content in a code editor.- To dynamically populate the content, click the data icon ([Omitted image "data-icon.png"] Alt text: Data icon) and select a data resource. This returns a response object containing metadata and an array of items.

  • To manually enter the content, click Edit. In the code editor, define the information needed to render each card, including its fields and actions. For example, to populate one card, you would enter the following:
JSON
{  "page_cursor": "e2JlY2E4ZTYyNWIwMjEwMTA4NDhiMjg1ODJkODFjNzYzPTI5LCA3NDRiODJhMjViMDIxMDEwODQ4YjI4NTgyZDgxYzc1Zj0yMDAsIDAxYjQzNWEwNzMyMTEwMTBjMzQyZDVmZGJkZjZhN2UzPTExfQ",  "page_size": 20,  "page_number": 0,  "is_last_page": false,  "all_actions": [    {      "assignmentId": "d46f400473211010c342d5fdbdf6a7cf",      "name": "navigation",      "label": "Navigation",      "actionType": "uxf_client_action",      "actionDispatch": "NAVIGATION",      "actionPayload": "{\r\n \"table\": \"{{table}}\",\r\n \"sysId\": \"{{sys_id}}\",\r\n \"url\": \"{{navigation_url}}\"\r\n}"    },    {      "assignmentId": "e3a173c073151010c342d5fdbdf6a7a2",      "name": "call_number",      "label": "Call Number",      "actionType": "uxf_client_action",      "actionDispatch": "HOME_PHONE_CALL",      "actionPayload": "{\r\n\t\"phoneNumber\": \"{{home_phone}}\"\r\n}"    }  ],  "selected_filter": "",  "items": [    {      "template": "now-card-evam-record",      "propValues": {        "highlightedHeaderLabel": "Vice President",        "textHeaderLabel": "Development",        "titleLabel": "Manifah Masood",        "imageURL": "1792fbe1d701120035ae23c7ce6103e4.iix",        "subtitle": "manifah.masood",        "subtitleAvatarName": "Manifah Masood",        "subtitleAvatarURL": "ab490666c312120048f4d5dc64d3aee8.iix",        "detailValueOne": "manifah.masood@example.com",        "detailValueTwo": "",        "detailValueThree": "",        "highlightedHeaderIcon": "clock-outline",        "highlightedHeaderBkgColor": "moderate",        "subtitleIcon": "calendar-fill",        "imageType": "image",        "subtitleImageType": "avatar",        "detailLabelOne": "Email address",        "detailLabelTwo": "Works for",        "detailLabelThree": "Location/address",        "mainActions": [          {            "assignmentId": "42fd3e5273511010c342d5fdbdf6a70e",            "name": "activate_user",            "label": "Activate",            "actionType": "server_script",            "icon": "Button",            "buttonType": "primary",            "actionDispatch": "",            "serverScript": "current.active = true;\ncurrent.update();",            "confirmationRequired": false,            "confirmationMessage": "",            "actionPayload": "",            "actionPayloadMap": []          },          {            "assignmentId": "e3a173c073151010c342d5fdbdf6a7a2",            "name": "call_number",            "label": "Call Number",            "actionType": "uxf_client_action",            "icon": "",            "buttonType": "primary",            "actionDispatch": "HOME_PHONE_CALL",            "serverScript": "",            "confirmationRequired": false,            "confirmationMessage": "",            "actionPayload": {              "phoneNumber": ""            }          }        ],        "clickAction": {          "assignmentId": "d46f400473211010c342d5fdbdf6a7cf",          "name": "navigation",          "label": "Navigation",          "actionType": "uxf_client_action",          "icon": "",          "buttonType": "primary",          "actionDispatch": "NAVIGATION",          "serverScript": "",          "confirmationRequired": false,          "confirmationMessage": "",          "actionPayload": {            "table": "sys_user",            "sysId": "1832fbe1d701120035ae23c7ce610369",            "url": ""          }        },        "model": {          "name": "Manifah Masood",          "email": "manifah.masood@example.com",          "avatar": "ab490666c312120048f4d5dc64d3aee8.iix",          "mobile_phone": "",          "time_zone": "Europe/London",          "title": "Vice President",          "photo": "1792fbe1d701120035ae23c7ce6103e4.iix",          "user_name": "manifah.masood",          "location.name": "",          "company.name": "",          "department.name": "Development",          "sysId": "1832fbe1d701120035ae23c7ce610369",          "sys_id": "1832fbe1d701120035ae23c7ce610369",          "table": "sys_user"        }      },      "buttonType": "primary",      "actionDispatch": "NAVIGATION",      "serverScript": "",      "confirmationRequired": false,      "confirmationMessage": "",      "actionPayload": {        "table": "sc_cat_item",        "sysId": "f514e9e64fcf42c0bde324af0210c766",        "url": ""      },      "model": {        "name": "OS X Mavericks",        "price": "$0.00",        "category.title": "Software",        "vendor.name": "",        "icon": "0f823d404f889200086eeed18110c70f.iix",        "picture": "616db9444f889200086eeed18110c70e.iix",        "short_description": "OS X Mavericks (version 10.9.x) is Apple's tenth\n\t\t\tmajor release of OS X, for Macs\n\t\t",        "model.display_name": "",        "sys_class_name": "Catalog Item",        "delivery_time": "2 Days",        "sysId": "f514e9e64fcf42c0bde324af0210c766",        "sys_id": "f514e9e64fcf42c0bde324af0210c766",        "table": "sc_cat_item"      }    }  ],  "available_filters": [    {      "sys_id": "",      "label": "Default"    },    {      "sys_id": "c10d1e42737e10108d991e666bf6a761",      "label": "Active entities"    },    {      "sys_id": "808ed682737e10108d991e666bf6a793",      "label": "Assigned to me"    },    {      "sys_id": "1213fb41733210108d991e666bf6a77a",      "label": "Recently updated"    }  ] }

Show grid/list toggle

toggleView

Option to allow users to switch between the list and grid views

Default view

defaultView

View in which the data set is displayed by default. You can select List or Grid. If left blank, the list view is the default.

Card height (grid view)

cardHeight

Size of the cards to display. You can select Small, Medium, or Large. This configuration applies only to the grid view.

Max. cards per row (grid view)

maxCardPerRow

Maximum number of cards to display in a row. You can select a minimum of 1 and a maximum of 6. This configuration applies only to the grid view.

Min. card width

minCardWidth

Minimum card width, in pixels. For best readability of the card content, use a minimum card width of 150 pixels.

Empty state message

emptyMessage

Message to display when there is no data to show.

Hide filter

hideFilter

Option to hide the filter element.

Hide pagination

hidePaginationControls

Option to hide pagination buttons to view the next or previous page of the data set.

## Data Set component events

Select event handlers to configure the actions (events) provided with the Data set component.

The Events tab shows the events used by the Data set component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

Event handlers

Event handlers work with data resources to link the Data set actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see Configure an event handler.

Event descriptions

Event Description
NOW_DATA_SET_PAGINATION_BUTTON_CLICKED User clicks a pagination button, such as selecting to view the next page of content.
NOW_DATA_SET_FILTER_ITEM_CLICKED User clicks an item that is listed in the filter dropdown.
NOW_DATA_SET_ACTION_SUCCEEDED Server completes a component action successfully. The event also dispatches a payload containing information of the component action.
NOW_DATA_SET_ACTION_FAILED Server completes a component action unsuccessfully. The event also dispatches a payload containing information of the component action.
Search documentation
Search document titles and file paths on the brazil branch