none
RCDC - UocIdentityPicker - Search Scope combination

    Question

  • Hi

    I have this UocIdentityPicker which i'm trying to make a little more user friendly.

                <my:Properties>
                    <my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=MailboxAccessAdd.Required}"/>
                    <my:Property my:Name="Mode" my:Value="SingleResult" />
    <!--                <my:Property my:Name="ObjectTypes" my:Value="Group"/>-->
                    <my:Property my:Name="ColumnsToDisplay" my:Value="Email" />
                    <my:Property my:Name="AttributesToSearch" my:Value="Email" />
    <!--                <my:Property my:Name="UsageKeywords" my:Value="Group"/>-->
                    <my:Property my:Name="Value" my:Value="{Binding Source=object, Path=MailboxAccessAdd , Mode=TwoWay}" />
                    <my:Property my:Name="Filter" my:Value="/Group[(ObjectID = /Set[ObjectID = 'e2c2876a-a8c2-4727-a728-9ed0bc345ad3']/ComputedMember) and (ObjectID = /Set[ObjectID = 'd775f51e-6b5f-48e7-8040-e9f8e355b49f']/ComputedMember) and (ObjectID != /Person[ObjectID='%ObjectID%']/MailBoxAccess)]"/>
                    <my:Property my:Name="ResultObjectType" my:Value="Group"/>
                    <my:Property my:Name="ListViewTitle" my:Value="Select only one entry here." />
                    <my:Property my:Name="PreviewTitle" my:Value="Entry selected:" />
                </my:Properties>

    The above is the XML and it works and it results in this;

     

    UocIdent

    What i really want, is to be able to search in the picker box.

    If i uncomment;

    <my:Property my:Name="ObjectTypes" my:Value="Group"/>

    i am then able to search, but then the filter is no longer applied.

    Any idea's how to make the filter applied?


    /Frederik Leed
    Friday, March 11, 2011 10:08 AM

Answers

  • Correct, users will need rights to Read the scope and any object returned in the scope including the attributes you list in the ColumnsToDisplay as well as the ObjectID and ObjectType even though it may not be displayed. It's typically ColumnsToDisplay + any attributes in the query filter.
    Brad Turner - www.identitychaos.com [If a post helps to resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of that post. By marking a post as Answered or Helpful, you help others find the answer faster.]
    • Marked as answer by FrederikLeed Tuesday, March 22, 2011 12:38 PM
    Saturday, March 19, 2011 4:15 AM
  • So i'm kind of thinking that the;

    <my:Property my:Name="UsageKeywords" my:Value="FileShare"/>

    is the sort of right, but i might need some permissions to use the scope, i just don't remember having to create MPR for scope usage.


    /Frederik Leed
    • Marked as answer by FrederikLeed Tuesday, March 22, 2011 12:38 PM
    Friday, March 18, 2011 7:35 AM

All replies

  • Why not use a UoCListView control instead? That has a built in search scope control
    ex-MSFT developer, now FIM/MIIS/ILM/WPF/Silverlight consultant | http://blog.aesthetixsoftware.com/
    Friday, March 11, 2011 12:53 PM
  • What if you did a search scope / usagekeywords combination, and moved the filter you are specifying in the RCDC over to a search scope? That way you can have a few search scopes made just for this picker

    Does setting the filter property eliminate the serach bar on the top of the picker, or just setting the object type?

     

     

    Friday, March 11, 2011 7:25 PM
  • OK, so i'm going for the solution with the search scope. The search scope just doesn't support removal of the objects thats all ready i the destination attribute. But i can be OK with that...

    I have tried to define what search scope to use with this;

    <my:Property my:Name="UsageKeywords" my:Value="FileShare"/>

    and i have a search scope with that UsageKeyword. The above results in;

    and this; 

    <my:Property my:Name="UsageKeywords" my:Value="Group/>

    results ind the belov

     

    How to make this search windows use my scope and only my scope?


    /Frederik Leed
    Thursday, March 17, 2011 9:29 AM
  • So i'm kind of thinking that the;

    <my:Property my:Name="UsageKeywords" my:Value="FileShare"/>

    is the sort of right, but i might need some permissions to use the scope, i just don't remember having to create MPR for scope usage.


    /Frederik Leed
    • Marked as answer by FrederikLeed Tuesday, March 22, 2011 12:38 PM
    Friday, March 18, 2011 7:35 AM
  • Correct, users will need rights to Read the scope and any object returned in the scope including the attributes you list in the ColumnsToDisplay as well as the ObjectID and ObjectType even though it may not be displayed. It's typically ColumnsToDisplay + any attributes in the query filter.
    Brad Turner - www.identitychaos.com [If a post helps to resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of that post. By marking a post as Answered or Helpful, you help others find the answer faster.]
    • Marked as answer by FrederikLeed Tuesday, March 22, 2011 12:38 PM
    Saturday, March 19, 2011 4:15 AM
  • Your last example was the same one I used. There's a lot of flexibility in how this dialog is displayed, you just need to try all the combinations and see which one is what you need.

    Might be something good to write an article about

    Saturday, March 19, 2011 4:26 PM
  • "Filter: This is an optional string property. The user provides an XPath expression to scope the resource picker to display only the items that fit within a defined scope. This property is mutually exclusive with the UsageKeywords property (above). When the search scope is applied, this property has no effect." 

    Use either the search scope properties or Filter; not both.

    • Proposed as answer by Phil Bart Monday, July 01, 2013 7:36 PM
    Monday, July 01, 2013 7:35 PM
  • Hi FrederikLeed,

    This may be an old thread but I hope you could still help. I would like to achieve what you have on above... could you please assist me with the code you used to have the results above? I need the users to be able to select from a list of choices as you do above and am quite challenged on achieving the results.... How did you do it?

    Thanks,

    Josephine

    Saturday, May 17, 2014 3:18 AM