---
sourceDocument: Brazil Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Data set component setup

# Data set component setup {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 5 minutes to read  
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](https://www.servicenow.com/docs/YMtTz79hYjmj5_kMcObIuA "Learn what a component is in UI Builder. Also, see how components work within UI Builder.").  
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](https://www.servicenow.com/docs/Hq7OFdFRjvDFnNsfdtsMGw "Learn what a page is in UI Builder. Understand the building blocks of a UI Builder page, such as column layouts and components.") .
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.

   {#data-set-component-uib-setup__choices_tvz_flr_nnb}  
   The property fields appear in the Config tab in the setup
   panel on the right.
{#data-set-component-uib-setup__steps_svz_flr_nnb}

## Data Set component properties {#ariaid-title2}

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.

* Data binding: Creates dynamic property values from multiple sources. Sources include state variables (@state), URL variables (@context), or data resource payloads (@data). For details, see [Add and configure data resources to a
  page](https://www.servicenow.com/docs/~B53KgSqh6jyRj9wmzg8LA "Add data resources to dynamically expose data from tables, records, or other elements on your page in UI Builder.") .
* Scripting: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://www.servicenow.com/docs/JxkxcsWDJlkywLr4rc~p8A "Create and bind a client state parameter value to a component in UI Builder. By adding custom values to your components, these components can then be automatically updated through a script.") .
{#data-set-config-properties__choices_4jq_bp0_csl}
{#data-set-config-properties__table_a2h_hlr_nnb__entry__3}

| 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 (![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: {#data-set-config-properties__ul_rsz_blv_tnb} { "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-config-properties__table_a2h_hlr_nnb}

## Data Set component events {#ariaid-title3}

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 {#data-set-config-events__section_nim_rod_66w}

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](https://www.servicenow.com/docs/8s23OEG1s5oowl~vaOUlLw "Add an event handler to a page, component, data resource, or declarative action within UI Builder so that your user can trigger an action.").

### Event descriptions {#data-set-config-events__section_hhj_lsb_mvb}

{#data-set-config-events__table_bjm_3lr_nnb__entry__2}

| 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. |
[ ]

{#data-set-config-events__table_bjm_3lr_nnb}

