cancel
Showing results for 
Search instead for 
Did you mean: 

Looking to run Script on any filter changes

mgriffin1996
7 - Data Storage
7 - Data Storage

Hello!

I am a developer and have recently been delving into building Javascript API calls for Pivot 2.0

I am looking for a way for my script to run every single time an end user changes any filters on their dashboard.  I've been scouring the forums but can't seem to find anything, perhaps I am just not looking effectively, but who knows 🙂

Does anybody have any ideas or suggestions? Thank you in advance!

1 ACCEPTED SOLUTION

harikm007
13 - Data Warehouse
13 - Data Warehouse

@mgriffin1996 if you write your script in 'filterschanged' event, it will execute every time user changes the filter.

Here is the dashboard script:

dashboard.on('filterschanged', function(se, ev){
	//Write your script here
	console.log('Testing filterschanged event...' )
})

-Hari

View solution in original post

2 REPLIES 2

harikm007
13 - Data Warehouse
13 - Data Warehouse

@mgriffin1996 if you write your script in 'filterschanged' event, it will execute every time user changes the filter.

Here is the dashboard script:

dashboard.on('filterschanged', function(se, ev){
	//Write your script here
	console.log('Testing filterschanged event...' )
})

-Hari

Thank you very much 🙂