Cancel loading report

Answered

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

6 answers

Public
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 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 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 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

Please login or Register to Submit Answer