The error is:
at mx.olap::OLAPCube/executeQuery()[C:\work\flex\dmv_automation\projects\datavisualisation\s rc\mx\olap\OLAPCube.as:881]
1 person found this helpful
Run the query from the result handler function, that way you know the data is back and stuffed in the AC.
Flex is asynchronous, so you can't assume the data is there, and you often must to things in the result handler.
Of course, the better way to do it is dispatch a custom event when the data is ready, have the OLAP component listen for the event, and then it fires its query.
If this post answers your question or helps, please mark it as such.
Thanks for the suggestions.
I have run functions from the ResultEvent handler for the AdvancedDataGrid, but how do I pass the CubeEvent to the query handler if I run the cube query that way? Or do I need to?
I'll play with your idea of setting up an event listener on the cube, too. That actually sounds like a "one size fits all" solution, albeit a more complicated one.
Hate to say this, but I resolved the async problem and I'm still getting the above error. It's like it can't find a component. I upgraded to Flex SDK 3.4 and the latest Data Visualization components, but no change.
Does anyone else have ideas?
Thanks in advance.