Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Can't show the first json data

Answered
Zander asked on August 5, 2020

I used Flexmonster in Vue.js. Json data. 
 
But for some reason, the first json data is never shown, the data exists before the Flexmonster instantiation, it just disappears for no reason at all.
Of course, there is no error message…It’s been checked, it’s not a data format issue.
Can you help me?

1 answer

Public
Vera Didenko Flexmonster August 5, 2020

Hello,
 
Thank you for reaching out to us.
 
Our team has not managed to reproduce the issue on our end using our sample project on GitHub.
 
In case you are loading the JSON data via AJAX, it is possible that the data is not generated and returned before Flexmonster tries to load it. This is due to the asynchronous nature of Ajax functions. In such situations, we kindly recommend connecting to the data source after the component is created with an empty report, and after Vue is mounted. This approach is explained in the following Support Forum thread.
 
Could you please confirm if this is the case? If your case is different or the above suggestion doesn’t help, could you please provide a code sample (with dummy data) where the issue is reproducible? This will greatly help us to understand the situation better.
 
Looking forward to your reply.
 
Kind regards, 
Vera

Please login or Register to Submit Answer