Get Record Count returned by contextual search in workspace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2023 06:12 AM
Hi All,
We have a requirement in which we need the count of all the records returned by the contextual search in Workspace.
We have configured the Contextual Search in CSM configurable workspace. Can anyone suggest a way to achieve this with UI Builder.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2023 08:38 AM
To achieve the count of all the records returned by the contextual search in Workspace using UI Builder, you can follow these steps:
- Open the Workspace where you have configured the Contextual Search.
- In the UI Builder section of the Workspace, add a new component of type "Data Table".
- In the "Data Source" section of the Data Table component, select the "Contextual Search" option.
- In the "Search Query" section of the Data Table component, specify the search query for the Contextual Search.
- In the "Columns" section of the Data Table component, add the columns that you want to display in the table.
- In the "Behavior" section of the Data Table component, enable the "Pagination" option.
- Save the changes to the Workspace.
After you have added the Data Table component to the Workspace, you can use the following steps to get the count of all the records returned by the Contextual Search:
- In the UI Builder section of the Workspace, add a new component of type "Text".
- In the "Properties" section of the Text component, give the component a name, such as "Record Count".
- In the "Data Source" section of the Text component, select the "Contextual Search" option.
- In the "Search Query" section of the Text component, specify the same search query as used in the Data Table component.
- In the "Behavior" section of the Text component, enable the "Count" option.
- In the "Appearance" section of the Text component, select the "Hidden" option.
- Save the changes to the Workspace.