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
345
Unable to apply XamPivotGrid filter value via FlatDataSource XAML
posted

I'm using NetAdvantage 12.1 and I'm unable to initially filter data via the Filters property on a FlatDataSource defined in XAML or code behind.

I'm using the following object:

class Transaction
{
public string Name {get;set;}
public DateTime Date {get;set;}
public decimal Amount {get;set;}
public bool IsDeleted {get;set;}
}

With this XAML markup:

<igOlap:FlatDataSource Cube="Transaction"
Rows="[Name].[Name]"
Columns="[Date].[Date]"
Filters="[IsDeleted].[IsDeleted]{[IsDeleted].[IsDeleted].&amp;[FALSE]}"
Measures="Amount" />

My problem is that the Filters area shows the correct item (IsDeleted), but the 'FALSE' filter is not applied when loading the grid. I can manually check/uncheck the TRUE and FALSE filter checkboxes and when clicking Ok the filter works fine, but I want to have the underlying dataset filtered when loading the grid for the first time.

For some reason, the XamPivotGrid seems to ignore the curly bracket part (...{[IsDeleted].[IsDeleted].&amp;[FALSE]}...).

Can you please show me how to achieve that? Thanks for your help