cancel
Showing results for 
Search instead for 
Did you mean: 

How do I lock a dashboard filter through dashboard script?

GSSC
9 - Travel Pro
9 - Travel Pro

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!!