ComponentOne FlexPivot for WinForms
GetUniqueValuesCube Method

C1.DataEngine.4 Assembly > C1.FlexPivot Namespace > C1FlexPivotEngine Class : GetUniqueValuesCube Method
SQL Server Analysis Service (SSAS) connection string.
Cube name.
View definition used for retrieving data from the cube.
The name of the field to provide unique values for.
Enables task cancellation.
Lists unique values of a field for the server's clients.
Syntax
'Declaration
 
Public Shared Function GetUniqueValuesCube( _
   ByVal connection As System.String, _
   ByVal cubeName As System.String, _
   ByVal view As System.Collections.Generic.Dictionary(Of String,Object), _
   ByVal fieldUniqueName As System.String, _
   ByVal cancelToken As System.Threading.CancellationToken _
) As System.Threading.Tasks.Task(Of IList)
public static System.Threading.Tasks.Task<IList> GetUniqueValuesCube( 
   System.string connection,
   System.string cubeName,
   System.Collections.Generic.Dictionary<string,object> view,
   System.string fieldUniqueName,
   System.Threading.CancellationToken cancelToken
)

Parameters

connection
SQL Server Analysis Service (SSAS) connection string.
cubeName
Cube name.
view
View definition used for retrieving data from the cube.
fieldUniqueName
The name of the field to provide unique values for.
cancelToken
Enables task cancellation.

Return Value

Collection of objects with properties Name (string) and Type (System.Type)
Remarks

Using this method, a client can show a list of values for the user to choose from.

See Also

Reference

C1FlexPivotEngine Class
C1FlexPivotEngine Members