- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
UI Builder Essentials Part 3
Overview
Quick Tip
If you haven't gone through the steps to create the Customer Support Workspace, check out our article on how to make a workspace from scratch!
Step 1: Open UI Builder
1. In your ServiceNow instance, use the Unified Navigator to go to Now Experience Framework > UI Builder.
2. When UI Builder opens, you should see the UI Builder Home screen.
3. Select the Experiences Tab at the top of the screen.
Step 2: Create a Page
1. In the Experience Editor, find Pages and variants.
2. Click the + (plus) icon next to it.
3. Select Create from scratch instead.
4. Enter the page name "Home Base". The URL path auto-populates.
5. Click Continue, then Looks good on the next screen.
6. Leave the variant name as Default or rename it.
7. Select Build Responsive
8. Click Create.
Step 3: Add a Two-Column Layout
1. Under Body inside the Component Tree, click the + Add content button.
2. Search for Two Columns (or select it from the Layouts category).
3. Click to add the Two Columns layout to the page.
Step 4: Add a Pie Chart to the Left Column
1. In the left column (Column 1), click the + (plus icon) to add a component.
2. Search for the Data Visualization component and Select it.
3. In the Component Configuration panel, under the Configure tab, expand the Data Sources category, and select Add data source.
4. Search for "Incident", and under the Tables category select Incident and Add this source at the bottom.
5. Under Column 1, select the Data Visualization component we just added. The Component Configuration panel should open to the right.
6. Inside the Configure tab, find the Data visualization type field and select Pie.
7. Scroll down in the Component Configuration panel, find the Group by category and expand it. Select Active.
Step 5: Add a List to the Right Column
1. Back on the left in the Component Tree. In the right column (Column 2), click + Add content to add a component.
2. Search for "List".
3. Select the List component.
4. Select the List 1 component from the Component Tree, beneath Column 2.
5. Navigate to the List component's Component Configuration panel on the right, within the Configure tab, and fill in the Table property by selecting Incident.
Step 6: Create a Client State Parameter
1. At the bottom-left of the Editor, under Data and scripts, selectClient State Parameters.
2. Click the + (plus) icon to create a new parameter and fill in the fields as follows:
Name: queryParam
Step 7: Configure the Pie Chart to Update the Parameter
1. Back on the left in the Component Tree, In the left column (Column 1), click on the Pie 1 component.
2. In the Component Configuration panel to the right, select the Events tab.
3. Select Add event mapping.
6. Under Client State Parameter Name, Select the client state parameter you created (queryParam
).
7. Hover over the Value to use after triggering event field, in the top right corner of the box, until you see the Bind Data (stacked circles) icon then Click it.
8. In the Data Binding modal, select the Event payload Data type in the left column.
9. Scroll down until you find "params.query", then click the small up arrow next to it or drag-and-drop the pill into the top of the binding area.
Quick Tip
Double Click the Pill at the top of the binding area and ensure the bindings value reads @payload.params.query
and not something like @payload."params.query"
. If you notice the quotations, double click on the pill at the top and update it to read @payload.params.query
.
Step 8: Bind the List Filter to the Parameter
1. Select the List 1 component, under Column 2, and go to the Component Configuration panel on the right.
2. Go to the Configure tab, expand the Data category if it's collapsed.
3. Hover over Edit Fixed Filter, then click the Data Binding icon (stacked circles) that appears.
4. In the data binding window, under the Data Types tab, select Client States.
queryParam
.
Step 9: Save and Preview
- Click the various slices in the pie chart (true/false).
- Observe that the List component updates to display incidents based on the selected slice (filtered by
true
orfalse
).
Troubleshooting
- The pie chart Visualization Clicked event updates the correct Client State Parameter.
- The Value in the event mapping is correctly bound to
@payload.params.query
. - The List component’s Fixed Filter is correctly bound to the same Client State Parameter.
- Ensure you Save after each change and refresh your preview to load the new configuration.
Conclusion
Congratulations! 🎉 You've now built an interactive data visualization enhanced with a dynamic list, allowing users to explore insights in real time. This is a significant step toward creating responsive, user-centric interfaces.
If you found this guide helpful, consider sharing it with peers or teams looking to elevate their UI Builder skills with dynamic visualizations.
Keep an eye out for future tutorials where we’ll dive deeper into crafting immersive, data-driven experiences. Until then—happy designing, and stay curious!
Check out the Next Experience Center of Excellence for more resources
- 4,696 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.