Forum Discussion

GSSC's avatar
GSSC
Cloud Apps
10-15-2024
Solved

How do I lock a dashboard filter through dashboard script?

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

Thanks

  • Hi GSSC ,

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

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

    -Hari

     

     

2 Replies

  • harikm007's avatar
    harikm007
    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

     

     

    • GSSC's avatar
      GSSC
      Cloud Apps

      This is great, thanks Hari!!