Post

3 followers Follow
0
Avatar

Dynamically change filters from a Custom Panel (JavaScript)

Hello,

I've created a Risk Matrix in a custom panel on a project level. It is a table where rows represent Impact, columns represent Probability and inside the cells I have the number of Risks with specific Impact and Probability. Currently, when I hover over the number in a certain cells I get a tooltip with the ID and Name of the Risks.

 

Is it possible when I click on a cell to change the filter option of the Risks panel in the project? Is there a way to dynamically change filter options via JavaScript?

 

Thanks,

Boyan

Boyan Lazarov Answered

Please sign in to leave a comment.

2 comments

0
Avatar

Hi Boyan,

Not really. Custom panels are not designed to alter other panels in the view, and the panel filters are not API configurable.

You may opt to display your filtered list on the same or another custom panel, or use a fixed filter and change the data of the risks so only required risks are visible (but that could affect other users who use that filter). 

Hope this helps,

Ophir

Ophir Kenig 0 votes
Comment actions Permalink
0
Avatar

Is there a way of doing this by any means ? 

I just want to set filter values on some default views according to profiles ? 

How could I achieve that ? 

For example : 
List users whose Location is same with me...
List Projects of people whose Discipline is same with me...

etc...
If there is a way to hook into filters via JS it should be very useful...

 

 

 

 

Mustafa Kipergil 0 votes
Comment actions Permalink