setReport not working

As the following example (https://jsfiddle.net/xjav1g36/53/) shows, setReport is somehow not working, but assign the report directly in the pivot works. What happened?

2 answers

Public
liangyi2012 August 10, 2018

I found out after setReport is put into ready event (https://jsfiddle.net/xjav1g36/57/) and works. Guess it has to do with pivot is not ready yet in the previous example.

Public
Tanya Gryshko Flexmonster August 10, 2018

Hello, Liang Yi,
Thank you for writing to us!
Yes, you are right, all Flexmonster API calls are blocked until the component’s ready event is dispatched. That’s why using ready event is the recommended way for such case. Also, in case you want to retrieve information about data source structure, we suggest using reportcomplete event.
Please let me know in case of other questions.
Regards,
Tanya

Please login or Register to Submit Answer