We have updated WebDataRocks EULA, effective as of April 18, 2024. Learn more about what's changed.

When I called webdatarocks.getReport function Cannot read property 'toObject' of undefined

Answered

Hi,
When I called getReport function throw “Cannot read property ‘toObject’ of undefined”.
How can i fix bug?

1 answer

Hugo Martinez June 16, 2020

Hi, 
 
The error could occur if the getReport function is called before the component is fully created.
I fixed this problem by using the reportcomplete WebDataRocks event: https://www.webdatarocks.com/doc/reportcomplete/.
 
Hope this helps.