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
12 - Data Integration
12 - Data Integration

@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
12 - Data Integration
12 - Data Integration

@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 ๐Ÿ™‚