Custom Filter attribute not showing preview list
I'm trying to create a custom Filter attribute since I can't use the Filter object on a custom attribute. When I was using the Filter attribute itself, things were working until I tried to save something to the database, and then it failed. So
the filter itself is working, but I can't get the preview list to work with my custom string RoleFilter. I've tried this way and I've tried with a button object, but neither will show up on the screen. I click the button and it thinks, but then
nothing appears. What do I need to change to make the filtered list appear?
<my:Control my:Name="FilterBuilder" my:TypeName="UocFilterBuilder" my:ExpandArea="true" my:RightsLevel="{Binding Source=rights, Path=RoleFilter}">
<my:Properties>
<my:Property my:Name="Value" my:Value="{Binding Source=object, Path=RoleFilter, Mode=TwoWay}"/>
<my:Property my:Name="PreviewButtonCaption" my:Value="%SYMBOL_ViewMembers_END%"/>
<my:Property my:Name="ExcludeGroupMembership" my:Value="true"/>
</my:Properties>
<my:Events>
<my:Event my:Name="PreviewClicked" my:Handler="OnClickPreview"/>
</my:Events>
</my:Control>
<my:Control my:Name="CalculatedMember" my:TypeName="UocListView" my:ExpandArea="true" my:RightsLevel="{Binding Source=rights, Path=RoleFilter}">
<my:Properties>
<my:Property my:Name="ColumnsToDisplay" my:Value="DisplayName,ObjectType,Description"/>
<my:Property my:Name="EmptyResultText" my:Value="%SYMBOL_CalculatedMemberEmptyResultText_END%"/>
<my:Property my:Name="PageSize" my:Value="10"/>
<my:Property my:Name="ShowTitleBar" my:Value="false"/>
<my:Property my:Name="ShowActionBar" my:Value="false"/>
<my:Property my:Name="ShowPreview" my:Value="false"/>
<my:Property my:Name="ShowSearchControl" my:Value="false"/>
<my:Property my:Name="EnableSelection" my:Value="false"/>
<my:Property my:Name="SingleSelection" my:Value="false"/>
<my:Property my:Name="ItemClickBehavior" my:Value="ModelessDialog"/>
<my:Property my:Name="ReadOnly" my:Value="true"/>
<my:Property my:Name="ListFilter" my:Value="{Binding Source=object, Path=RoleFilter}" />
</my:Properties>
</my:Control>
May 25th, 2011 5:45pm