none
RCDC Group Creation UocFilterBuilder Problem RRS feed

  • Question

  • I want to use UocFilterBuilder for creating criteria based groups. When I define the criterias and move to next page or finish the wizard the configuration wont be saved. I could see this when I go to the next tab and go back again to criteria, all configuration are lost. I think it could be one of the handlers not working properly.

    When I click on Preview Button first, it looks like it sents back data to the server and than it saved the criteria configuration correctly. Also when using the edit creiteria based groups wizard it works properly as well, without using Preview Button.

    Does somebody know how to save filter criterias within RCDC for group creation?

    My RCDC code looks like this:

    <my:Grouping my:Name="GroupingCalculatedMembers" my:Caption="%SYMBOL_GroupingCalculatedMembersTabCaptionTabCaption_END%">
          <my:Control my:Name="ManagerialMembershipDescription" my:TypeName="UocTextBox" my:Visible="false">
            <my:Properties>
              <my:Property my:Name="Text" my:Value="%SYMBOL_ManagerialMembershipDescription_END%" />
            </my:Properties>
          </my:Control>
          <my:Control my:Name="Manager" my:TypeName="UocIdentityPicker" my:Caption="%SYMBOL_GroupingManagerialMembersManagerCaption_END%" my:RightsLevel="{Binding Source=rights, Path=Filter}">
            <my:Properties>
              <my:Property my:Name="Required" my:Value="true" />
              <my:Property my:Name="ObjectTypes" my:Value="Person" />
              <my:Property my:Name="ColumnsToDisplay" my:Value="DisplayName, MailNickname, Manager" />
              <my:Property my:Name="AttributesToSearch" my:Value="DisplayName, MailNickname" />
              <my:Property my:Name="UsageKeywords" my:Value="Person" />
              <my:Property my:Name="ResultObjectType" my:Value="Person" />
              <my:Property my:Name="ListViewTitle" my:Value="%SYMBOL_ManagerPopupListviewTitle_END%" />
              <my:Property my:Name="PreviewTitle" my:Value="%SYMBOL_ManagerPopupPreviewTitle_END%" />
              <my:Property my:Name="MainSearchScreenText" my:Value="%SYMBOL_ManagerSearchText_END%" />
            </my:Properties>
            <my:Events>
              <my:Event my:Name="SelectedObjectChanged" my:Handler="OnChangeManagerialMembership" />
            </my:Events>
          </my:Control>
          <my:Control my:Name="FilterBuilder" my:TypeName="UocFilterBuilder" my:RightsLevel="{Binding Source=rights, Path=Filter}" my:ExpandArea="true">
            <my:Properties>
              <my:Property my:Name="PermittedObjectTypes" my:Value="Person,Contact" />
              <my:Property my:Name="Value" my:Value="{Binding Source=object, Path=Filter, Mode=TwoWay}" />
              <my:Property my:Name="Required" my:Value="true" />
              <my:Property my:Name="PreviewButtonVisible" my:Value="false" />
            </my:Properties>
          </my:Control>
          <my:Control my:Name="Preview" my:TypeName="UocButton" my:ExpandArea="true">
            <my:Properties>
              <my:Property my:Name="Text" my:Value="%SYMBOL_ViewMembers_END%" />
            </my:Properties>
            <my:Events>
              <my:Event my:Name="Click" my:Handler="OnClickPreview" />
            </my:Events>
          </my:Control>
          <my:Control my:Name="ComputedMemberList" my:TypeName="UocListView" my:Caption="%SYMBOL_CalculatedMemberCaption_END%" my:RightsLevel="{Binding Source=rights, Path=Filter}" my:ExpandArea="true">
            <my:Properties>
              <my:Property my:Name="ColumnsToDisplay" my:Value="DisplayName,ObjectType" />
              <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:Properties>
          </my:Control>
          <my:Control my:Name="InvalidMemberListDynamic" my:TypeName="UocListView" my:Caption="%SYMBOL_InvalidMemberCaption_END%" my:Description="%SYMBOL_InvalidMemberHint_END%" my:ExpandArea="true" my:Visible="false">
            <my:Properties>
              <my:Property my:Name="ColumnsToDisplay" my:Value="DisplayName,ObjectType" />
              <my:Property my:Name="EmptyResultText" my:Value="%SYMBOL_InvalidMemberListEmptyResultText_END%" />
              <my:Property my:Name="PageSize" my:Value="10" />
              <my:Property my:Name="ShowTitleBar" my:Value="True" />
              <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:Properties>
          </my:Control>
          <my:Events>
            <my:Event my:Name="AfterEnter" my:Handler="OnEnterMembersGrouping" />
            <my:Event my:Name="BeforeLeave" my:Handler="OnLeaveMembersGrouping" />
          </my:Events>
        </my:Grouping>

    Tuesday, February 23, 2016 1:13 PM

All replies

  • Several possible items:

    1) Does your RCDC file start off with the Object Data Sources?

    <my:ObjectDataSource my:TypeName="PrimaryResourceObjectDataSource" my:Name="object" my:Parameters=""/>
    <my:ObjectDataSource my:TypeName="SchemaDataSource" my:Name="schema"/>
    <my:ObjectDataSource my:TypeName="PrimaryResourceRightsDataSource" my:Name="rights"/>

    2) Your controls don't seem to have the proper bindings set to store values, for example your manager control is missing this:

    <my:Property my:Name="Value" my:Value="{Binding Source=object, Path=Manager , Mode=TwoWay}" />

    3) As for the filter builder review this

    4) "In general, the use of custom Events is not supported in FIM" -- https://technet.microsoft.com/en-us/library/ee534918(v=ws.10).aspx

    5) "list view ListFilter property and the filter builder Value property to the same data source attribute to link the two" -- same source


    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

    Thursday, July 7, 2016 5:03 PM