Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Save configuration of a WinPivotGrid / FlatDataSource
posted

Hi,

Not really sure if this should be under WinPivotGrid or under FlatDataSource, feel free to move it if it is in the wrong place.

I'm trying to save the state in which a user has left a WinPivotGrid, specifically the Rows, Columns, Filters and Measures as used in the FlatDataSourceInitialSettings:

Dim settings = New FlatDataSourceInitialSettings() With { _
.Rows = "[Sales].[Product]", _
.Columns = "[Sales].[SalesPerson]", _
.Measures = "[Sales].[Amount]"
.Filters = "" _
}

The final goal is to be able to save the configuration of Rows, Columns, Measures and Filters used so a user can go back to the report as it was with a simple click, so I would have to know the Rows, Columns, Measures and Filters to be able to pass it as FlatDataSourceInitialSettings when reloading the cube.

I have tried to obtain that from the WinPivotGrid and from the FlatDataSource, I can see that they are set inside the FlatDataSource in DirectCast(MyDS.dataSource, Infragistics.Olap.FlatData.FlatDataSourceInternal).RowAxis for example, but since that is "Internal / Friend" I can't enumerate it at runtime.

What would be the best way to achieve what I need?

Regards