Apply interactive filters to work in following reports in workspace

Chenab Khanna
Tera Expert

Hi community,

I have created a new platform analytics dashboard within UI Builder. Within that, there are 2 interactive filters at the top and different types of reports below it.

When I am selecting the filter values, it's not showing the applied filter and reports are not showing results as per filters.

ChenabKhanna_0-1729761484888.png

 

I have copied the ootb dashboard - Risk Overview that's present in Risk Workspace with some changes so that it is as per my custom requirement following advanced risk assessment.

I am new to workspace and need help with detailed steps on how to apply filters to below reports

13 REPLIES 13

MeghanaAySo
ServiceNow Employee
ServiceNow Employee

Hello @Chenab Khanna ,

For binding the filter to the data viz components (reports), we have individual client scripts that would be executed upon selecting of appropriate filters, for each page - both Inherent Risk Reports, Residual Risk Reports and Assessment Overview. These client scripts titled "Apply Filters Residual Risk Reports Tab", "Apply Filters Inherent Risk Reports Tab" and "Apply Filters Assessment Overview Tab" set the appropriate parFilters variable for each of the reports present in their respective pages. 

 

You would have to ensure that these client scripts are existing in your dashboard and also that your data viz components or reports have "filterConfigurations" property binded to the appropriate client state parameter. You can check this is in the macroponent definition of your page.

 

For example all the reports present in Inherent Risk Reports page should have "filterConfigurations" property binded to "parFiltersInhRiskReportsTab" as shipped OOTB.

Hi,

I have the client scripts already mapped to the filters. However, i don't see "filterConfigurations" in my macroponent. Can you please show the steps on how to add the property in the composition for all reports?

I can see that i need to add the property in the composition field, however, where to add and keep it in proper indentation or can i just add anywhere?

ChenabKhanna_0-1729779590988.png

Can you please show just for 1 report where to exactly add the property?

 

You would have to add the property similar to this way for both the Filter component and also the reports that you want to bind to the filter accordingly. 

For example: This is how you would add to the Filter components present on the Inherent Risk Reports page.

Screenshot 2024-10-25 at 10.08.50 AM.png

 

And for each of the reports you would have to add for them based on the tab they are present, in the following manner.
For example this is for one of the Single Score data visualizations present on the Inherent Risk Reports tab.
Screenshot 2024-10-25 at 10.14.30 AM.png

Since these configurations are shipped OOTB you can also refer to the default page to see how they are configured for reference. 

I tried the same thing but within composition, its really difficult to identify the reports. Can you please tell how to find each report and exactly at which line we need to add the property?

 

I tried to add like below - 

 

ChenabKhanna_0-1729834996075.png

But its doesn't work - 

ChenabKhanna_1-1729835050352.png

The applied entity does not show when the pop up is closed - 

ChenabKhanna_2-1729835095375.png