C
Chris Magoun
I am displaying OLAP data in a VB.NET app using the OWC PivotTable component
(via the Primary Interop Assemblies). I would like to filter the members
that appear on the RowAxis, but I am having trouble passing an array to the
IncludedMembers property. Here is sample code:
Dim av As PivotView = pt.ActiveView
av.RowAxis.InsertFieldSet(av.FieldSets("Provider"), Nothing, True)
Dim aIncl() As String
aIncl(0) = "[Provider].[All Provider].[Adams County Memorial Hospital]"
aIncl(1) = "[Provider].[All Provider].[Apple River Hospital - Amery]"
aIncl(2) = "[Provider].[All Provider].[Appleton Medical Center]"
av.RowAxis.FieldSets("Provider").AllIncludeExclude =
PivotFieldSetAllIncludeExcludeEnum.plAllExclude
av.RowAxis.FieldSets("Provider").Fields(0).IncludedMembers = aIncl
With this code, I get the error "Parameter is incorrect" on the last line.
If I populate the pivot table with an MDX query, I can see the
IncludedMembers array, but I cannot populate it.
Does anyone have any suggestions?
Chris Magoun
(via the Primary Interop Assemblies). I would like to filter the members
that appear on the RowAxis, but I am having trouble passing an array to the
IncludedMembers property. Here is sample code:
Dim av As PivotView = pt.ActiveView
av.RowAxis.InsertFieldSet(av.FieldSets("Provider"), Nothing, True)
Dim aIncl() As String
aIncl(0) = "[Provider].[All Provider].[Adams County Memorial Hospital]"
aIncl(1) = "[Provider].[All Provider].[Apple River Hospital - Amery]"
aIncl(2) = "[Provider].[All Provider].[Appleton Medical Center]"
av.RowAxis.FieldSets("Provider").AllIncludeExclude =
PivotFieldSetAllIncludeExcludeEnum.plAllExclude
av.RowAxis.FieldSets("Provider").Fields(0).IncludedMembers = aIncl
With this code, I get the error "Parameter is incorrect" on the last line.
If I populate the pivot table with an MDX query, I can see the
IncludedMembers array, but I cannot populate it.
Does anyone have any suggestions?
Chris Magoun