Hi,
I have a problem with the xamPivotGrid.
I select a cube names Orders.
In visual studio I change the cube name to Orders1 and save the changes.
I then drag a the CustomerId into filter.
I get the error: The object 'Orders' was not found Parameter name: index.
I catch this exception in :myWindow.Dispatcher.UnhandledException += new DispatcherUnhandledExceptionEventHandler(Dispatcher_UnhandledException);
I close the window.
If i bring up the window again with a valid cube the drag drop is gone.
Screen shot:
How do i get the drag drop back. The only way is to close the application and reopen it again.
Regards,
Paw Kyhl Jensen
Hello,
In order to get error notifications related to connecting to desired server you have to listen for DataSourceBase.LoadSchemaCompleted event and check if LoadSchemaCompletedEventArgs.Error property is different than null.
Plamen.
Is there any luck recreating the problem.
Paw
Hi again,
Here is a small solution similar to what I am trying to accommplis.
It is a WinForms project calling the dll containing the cube browser.
Hot to produce the drag drop problem:
1. Run the soulution (You might need to fix the references)
2. Enter the Server name , Database name and the Cube name you want to browse.
3. Click the Open button. The simple browser will apear and all is fine.
4. Rename the cube in Visual Studio (I did it like: File->Open->Analysis Services Database...)
5. Then drag something into the grid or the fields below. A messagebox should popup with an error.
6. Close the message box
7. Close the browser
8. change the cube name in the textbox to a valid cube or the renamed one if it has been processed.
9. click open
10. try to drag an item. (You cannot)
I would also like to know how to catch the exception when the server name is invalid.
Regards
Hi I did it in Visual Studio 2008. But it does not matter how the name is changed.
I will make a small project that does this.
Could you explain more about how you are changing the cube name? You mentioned that you are doing that in visual studio. I’m assuming that you did this thru the Server Explorer before you run your application but please give me the step by step.
Can you duplicate this using the Adventure Works cube?
The rest of your steps, from where you are dragging a dimension, I assume are done at run time.