Hi,
I have a situation that led me to execute the filling of a saved view after the dimensions are loaded.
So when a user selects a view I fill the desired cube (which is cube X in this case) to my data source and wait for the LoadDimensionsCompleted to fill my view data in the pivot grid.
If another view on a different cube ( which is cube Y ) was selected, It will work fine also through the same steps.
The issue occurs when the user selects a view related to the same cube in the first point (which is cube X again ). In this case the LoadDimensionsCompleted was not triggered so the pivot grid was not filled as a result. The same issue will appear If the user selected a view related to cube Y for the second time.
Is there any explanation for this ? is it something related to caching ? I am using v11.1 btw.
Thanks in advance.
Thanks a lot. Its just what I need.
Regards.
Ohaz
You cannot expect to have LoadDimensionsCompleted twice for a cube. Once loaded dimensions are cached and Cube.DimensionsLoaded property is set to true. In your case you can add an event handler for DataSourceBase.PropertyChanged and activate your view when PropertyName == “Metadata”. Keep in mind that this event is fired when one of these is changed - database/cube/measure group.
Plamen.
I have the X-Y-X Scenario. So If I load a view built on cube X it will work...Then I go to another view built on cube Y it will also work....The last step is when I go back to a view built on X. in this case the LoadDimensionsCompleted event will not work...and that is specifically the issue.
Thanks.
Hello,
If I understand you correct you have difficulties only when you try to load a view which is built over the same cube as the view that’s already loaded, right? Or you have X – Y – X scenario?