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


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

1 answer

Hugo Martinez June 16, 2020

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.