Articles in this section
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

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied