We have changed our pricing. Flexmonster Software License Agreement was also updated (list of changes)

Column filter is not working when there is no matching data in the data source

Answered
Alex asked on March 30, 2022

Hello,
 
There is an issue with column filter. Data is not filtered when there is no matching data in the data source. All data is displayed instead.
 
Steps:

  1. Load report and apply column filter using the column header. Data is filtered.
  2. Save report JSON, using getReport() API method.
  3. Load report again with saved report JSON (using setReport() API method) when data source doesn't contain matching records.

Expected: An empty data set is displayed
Result: All data source data is displayed

4 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 30, 2022

Hello, Alex!
Thank you for contacting us.
 
Here’s a support ticket where the same question was discussed and we provided a workaround: https://www.flexmonster.com/question/members-dont-include/
 
Please let us know if this helps.
 
Regards, 
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 11, 2022

Hello, Alex!
Hope you are doing well.
 
Our team is wondering if you had some time to check the suggested thread about filtering. Did it help to solve the case?
Looking forward to hearing your response.
 
Regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster April 18, 2022

Hello, Alex!

Hope you are having a great week.
 
Just checking in to ask if you've had a chance to try the suggested filtering approaches. Could you please let us know if the thread was helpful?
 
Looking forward to hearing from you.
 
Regards,
Solomiia.

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster November 28, 2024

Hello, Alex!

Hope you are doing well.

The Flexmonster team is glad to share that we’ve introduced a new filtering functionality to our pivot grid.

For the JSON and CSV data sources, we have added a new filter.allowEmptyMembersFilter option starting from the 2.9.86 version of Flexmonster. This property allows to show an empty table when the selection filter includes only members that do not exist in the dataset instead of removing the invalid filter.
So, if this approach matches your data source type(JSON or CSV), you are welcome to use it instead of the workaround we provided earlier. For other data source types, we recommend sticking to the approach of combining member and query filters.

Here is the JSFiddle to illustrate the idea: https://jsfiddle.net/flexmonster/vkthmug4/.

You can find more details about the new filtering functionality in our docs: https://www.flexmonster.com/doc/advanced-tips-filtering/#show-empty-grid-when-filtering-by-non-existent-members.

We thought this might be of interest to you, and we’d love to hear your thoughts if you get a chance to try it out.

Kind regards,
Solomiia

 

Please login or Register to Submit Answer