I'm trying to implement a new feature in my workshop application and I get trouble with filters. I would like to have either a default value coming from another object (multiple select table) or event a map widget, but I did not manage to implement it.
The objective is to display a chart related to a selected object,n then allow the user to select other objects to add their details to the first one to be able to compare.
What I tried so far is to define 2 filters :
- a first one initiated with a variable I catched once the user made a selection (currently a single value yet). My problem is that the filter is not selected by default, so nothing is displayed.
- a second widget, more common, with all available values. But I would like to have nothing displayed if no values are selected (I have more than 2 thousand values, so the chart is not readable).
On top of that, If I manually select my default value, then add values to the second filter, nothing is displayed because the default behavior seems to be a king of AND rather than an expected OR.
What would you propose to manage this ?
Is there a way to pass a default value to a common filter (and how)? Or is there a possibility to implement a OR between filters, rather than AND, and make the second filter returning nothing if no values are selected?