cancel
Showing results for 
Search instead for 
Did you mean: 

How do I lock a dashboard filter through dashboard script?

GSSC
8 - Cloud Apps
8 - Cloud Apps

Hi, I need to lock the first dashboard filter using a dashboard script. Is this possible?

Thanks

1 ACCEPTED SOLUTION

harikm007
13 - Data Warehouse
13 - Data Warehouse

Hi @GSSC ,

Of course, it's possible. Here is the script:

dashboard.on('initialized', function(dash, args){
	dash.filters.$$items[0].locked = true		 
			 
})

-Hari

 

 

View solution in original post

2 REPLIES 2

harikm007
13 - Data Warehouse
13 - Data Warehouse

Hi @GSSC ,

Of course, it's possible. Here is the script:

dashboard.on('initialized', function(dash, args){
	dash.filters.$$items[0].locked = true		 
			 
})

-Hari

 

 

This is great, thanks Hari!!