Cancel loading report

Answered
Mieriik asked on April 18, 2018

Hey,
Is possible to cancel loading report? Sometimes loading is too long and for example some user want to cancel and load another report.

Attachments:
sss.jpg

8 answers

Public
Tanya Gryshko Tanya Gryshko Flexmonster April 18, 2018

Hello, Mieriik,
Thank you for writing to us. Loading of the report stops when the new report starts loading.
If you set empty report, current report will stop loading. To set empty report please use the following code:

flexmonster.setReport({})

Please let me know if you have other questions.
Regards,
Tanya

Public
Jesus Jose Jurado June 6, 2018

Hi, the flexmonster.setReport({}) does not cancel the request like for example the abort method that has the GET of jquery.
I ask your it becouse I need to cancel request fom server too, so I need one method to cancel a request.
Do you have any suggestion?
regards

Public
Ian Sadovy Ian Sadovy Flexmonster June 8, 2018

Hi Jesus,
 
Thank you for the response.
Could you please specify what is your data source type (i.e. JSON, CSV, MASA, etc.)?
We will take a look how we can improve the cancellation of the request.
 
Thanks,
Ian

Public
Jesus Jose Jurado June 11, 2018

Hi Ian, It is CSV.

Public
Tanya Gryshko Tanya Gryshko Flexmonster June 13, 2018

Hello, Jesus Jose,
Thanks for the quick update!
Flexmonster offers clear() API call which clears the component’s data and view. Our development will improve this API call so that it will cancel the request when called. This update will be released on July the 2nd.
Please let us know in case of any other questions.
Regards,
Tanya

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster July 3, 2018

Hello Jesus Jose,
We have just released the component's version 2.5.6 . You are welcome to try the update for the clear() API call.
Waiting for the feedback.
Regards,
Dmytro

Public
Nil December 24, 2021

Hi Team, 
 
how to cancel the report loading  when you data source is azure analysis service .

flexmonster.setReport({}) will not working for me also new report will not set until first report loaded 

We have cancel the current repot loading and set new report to load .

Public
Vera Didenko Vera Didenko Flexmonster December 28, 2021

Hello, Nil,
 
Thank you for writing to us.
 
We suggest using the clear() API call to cancel loading a report.
Here is a JSFiddle for illustration: https://jsfiddle.net/flexmonster/e5kz694w/.
This approach should cover Azure Analysis Services as well.
 
Please let us know if this helps.
 
Kind regards,
Vera

Please login or Register to Submit Answer