OlapDataConnection Class
Represents a connection to a cube in an MS Analysis Services database.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v18.2.Core.dll
Declaration
Related API Members
The following members return OlapDataConnection objects:
Remarks
The following code snippet shows how to create a data source that allows you to supply a dashboard with data from the OLAP cube.
The following example demonstrates how to bind a dashboard to an OLAP cube using DashboardOlapDataSource.
The DashboardOlapDataSource allows you to establish a connection to the OLAP cube by specifying a connection string.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-bind-a-dashboard-to-an-olap-cube-using-dashboardolapdatasource-t216477.
Dim olapParams As New OlapConnectionParameters()
olapParams.ConnectionString = "provider=MSOLAP;" _
& ControlChars.CrLf & _
"data source=http://demos.devexpress.com/Services/OLAP/msmdpump.dll;" _
& ControlChars.CrLf & _
"initial catalog=Adventure Works DW Standard Edition;" _
& ControlChars.CrLf & _
"cube name=Adventure Works;"
Dim olapDataSource As New DashboardOlapDataSource(olapParams)
olapDataSource.Fill()
dashboardDesigner1.Dashboard.DataSources.Add(olapDataSource)
Implements
Inheritance
Object
DataConnectionBase
OlapDataConnection
See Also