Category / Section
How to hide the members in Silverlight OlapGauge dimension?
1 min read
You can hide the members by setting a role in OLAP Cube. You can pass the connection string with additional parameter, Roles, that permits only you to view the allowed members and hides the rest.
C#
public class OlapManager : IOlapDataProvider
{
private readonly OlapDataProvider _dataManager;
/// <summary>
/// Initializes a new instance of the <see cref="OlapManager"/> class.
/// </summary>
public OlapManager()
{
string connectionString = (@"Data Source=http://bi.syncfusion.com/olap/msmdpump.dll;Roles=Role1; Initial Catalog=Adventure Works DW 2008 SE;";
_dataManager = new OlapDataProvider(connectionString);
}
}
VB
Public Class OlapManager
Implements IOlapDataProvider
Private ReadOnly _dataManager As OlapDataProvider
'/ <summary>
'/ Initializes a new instance of the <see cref="OlapManager"/> class.
'/ </summary>
Public Sub New()
Dim connectionString As String = ("Data Source=http://bi.syncfusion.com/olap/msmdpump.dll;Roles=Role1; Initial Catalog=Adventure Works DW 2008 SE;"
_dataManager = New OlapDataProvider(connectionString)
End Sub
End Class