Posted 3 August 2017, 3:50 pm ESThi, my application have a list with databases (ssas) to connect, so, i don't know which database until the users choose, if i load the form without connection gave a error message, i need to disable this message, how can i ? thanks
Problem Load Component without datasource
Posted by: fabioand2k-dd on 3 August 2017, 3:50 pm EST
Replied 3 August 2017, 3:50 pm ESTfabioand2k,
I'm assuming that (from your previous posts) you are still referring to the web control. I'm also assuming that you are setting the PivotView's DataSourceID property at design time or when the page loads prior to the user making a selection. Please note that the web control will automatically attempt to open a connection to the data source if the DataSourceID is set to the name of a data source control. To prevent this error from occurring you should not set the DataSourceID property until after a connection string and perspective have been specified in the MDXDataSource Control.
If you have any further questions please feel free to let me know.