Skip to main content

OlapDataConnection Class

Represents a connection to a cube in an MS Analysis Services database.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v24.2.Core.dll

Declaration

public class OlapDataConnection :
    DataConnectionBase,
    IDataConnection

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 code snippets show 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.

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