Need a special offer?Find out if your project fits.
+

The filter error

Answered
angelsaber asked on September 1, 2022

The filter error
When i user filter to get data which i need,i't make error.
 

8 answers

Public
angelsaber September 1, 2022
Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster September 1, 2022

Hello!
 
Thank you for contacting us.
 
We could not reproduce the described issue on our side. Could you please provide us with the sample project, where the case is reproducible?
 
We also kindly suggest trying the setFilter() API call to prefilter the data instead of reloading the whole report with setReport(). It will automatically filter data in the Highcharts chart as well.
Here is an example for visualization: https://jsfiddle.net/flexmonster/341Lhjwq/.
 
In case you want to change the slice in the runtime, you can use the runQuery() API call: https://www.flexmonster.com/api/runquery/.
 
Hope you will find this answer helpful.
Looking forward to your response.
 
Regards,
Solomiia

Public
angelsaber September 6, 2022

Hello!
sorry,it's still make error.
When the filter that alle the value dont be part of members, or all the value is part of members,it's work .
Otherwise,it's make error.
There is some screenshots.

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster September 6, 2022

Hello!
 
Thank you for getting back to us.
 
We still could not reproduce the described behavior on our side. Could you please modify our JSFiddle example to make your case reproducible: https://jsfiddle.net/flexmonster/oq9rsj7e/.
 
Looking forward to your response.
 
Regards,
Solomiia

Public
angelsaber September 8, 2022

Hello!
 
i find it's because of  expandAllData()
Looking forward to your response.
 

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster September 8, 2022

Hello!
 
Thank you for your response.
 
Please note that the expandAllData() API call shoud be executed after the report is rendered. 
Keeping this in mind, we kindly suggest two ways to handle the expands:
1. Using the reportcomplete event to make sure that report is rendered before calling the expandAllData().
2. Adding the `expandAll` property to the SliceObject on the report before the setReport() API call.
 
We have modified the example to illustrate the described approaches: https://jsfiddle.net/flexmonster/tzom28ha/.
 
Please try the suggested approaches and let us know if handling the expands resolved the issue.
 
Waiting for your response.
 
Regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster September 20, 2022

Hello, Angelsaber!

Hope you are doing well.

Our team is wondering if you had some time to try the suggested approaches to handle the expands.
Could you please let us know if handling the expands resolved the issue?

Looking forward to hearing from you.

Regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster September 27, 2022

Hello, Angelsaber!

Hope you are having a great week.

Just checking in to ask if the suggested approaches to handle the expands were helpful.

Looking forward to your response.

Kind regards,
Solomiia

Please login or Register to Submit Answer