Advanced (XPath) criteria based sets filter

I’m trying to specify the criteria for a (non temporal) set that can’t be achieved by the GUI options so am having a look at XPath filters instead.
To cut a long story short I’ve been trying various combinations of filters and not having any joy at all, so I’m going back to basics and I’ve been looking at this MS site which gives a few examples :
http://msdn.microsoft.com/en-us/library/windows/desktop/ff393652(v=vs.100).aspx
In particular the group example about a third of the way down the page (where Owner is null) is very similar to the filter I’m looking for (along the lines of show me objects where a specified multivalue reference attribute is null).
So the example is this :
/Group[Type = 'Security' and not(Owner = /Person)]
I’m going into the Advanced properties of the set and into Extended attributes, then I'm replacing the content of the “Filter” attribute with this :
<Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect" xmlns="http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Group[Type
= 'Security' and not(Owner = /Person)]</Filter>
When I try and commit the change I get a “Processing Error, reason: unspecified, Request could not be dispatched”. 
It doesn’t seem to matter if I copy & paste the whole filter, or just manually overtype the criteria manually (I wondered if it might be a carriage return character in notepad or something like that) but no joy whichever way I try.
I’m guessing this should be working (as it is an example from microsoft’s own website, no guarantee I suppose but why publish it if it doesn’t work) but I can’t seem to get it to take for some reason, am I missing something ? (I’ve checked that the
“Owner” attribute is in the admin filter permission BTW).
I know that FIM Xpath queries are restricted in some ways, from this blog :
http://blog.msresource.net/2011/10/06/set-and-group-criteria-filters/
These two aren’t allowed by the looks of it
/Group[Owner != /Person]
Contains()
This is somewhat similar to the above example but not quite the same. 
Is “not” allowed but “!=” isn’t maybe ?  also in the GUI if you try and build a filter it uses the word “Contains” but the XPath under the covers doesn’t so I don’t know if that is an issue.
So I’m a bit stumped, I thought originally it was just that I was using an unsupported filter, but the fact that I can’t get the published MS example to work either suggests that it may be something else I’m missing. The same thing happens on more than one
FIM environment.  We’re running FIM 2010 R2 SP1 (4.1.3508.0)
Any pointers gratefully received.

Hello Cham01,
You can't use "/Person" to refere of all objects "person". You have to use set instead. Like:
/Group[Type = 'Security' and not(Owner = /Set[ObjectID='8887df8e-6e84-49f2-a794-f9e9802077e0']/ComputedMember)]
Note:
I use the objectID of "All people" set (same in all FIM environments)
You can do this through the UI filter (in set creation/edition)
Regards,
Sylvain

Similar Messages

  • Urgent Help - Criteria Based Set Help

    Hey all,
         I maybe going crazy here but i cant seem to figure out the following set. What I need is to do is create a set for disabled accounts which would consists of the following all users of have expired which is based on a business rule that
    states if you account "extract_date is older then 90 days from todays date" and your have an "Employee ID" your account will be disabled. Or if the EmployeeStatus dropdown is set to "disabled". 
        Below is a screenshot of what I am trying to do but I am having trouble with the finding employees who have Employee ID's based on that criteria.
         Any advice is greatly appreciated. 

    Check out Paul Williams blog on set criteria and see if any apply to your criteria.  http://blog.msresource.net/2011/10/06/set-and-group-criteria-filters/

  • How to disable 'set filter' in alv list display

    Hi Friends,
    I am working on alv report and I came across a requirement that I need to disable the 'set filter' to restrict the user from filtering records in output.
    please help on this.
    thanks in advance.

    HI
    check these sample codes
    Here are some code snippets:
    FORM output_report.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = 'ZRRRMPROJSTAT'
    is_layout = gs_layout
    it_fieldcat = gt_fieldcat
    it_sort = gt_sort
    i_save = 'A'
    it_events = gt_events
    TABLES
    t_outtab = i_project
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    ENDFORM. " output_report
    FORM build_fieldcat.
    DATA: s_fieldcat TYPE slis_fieldcat_alv.
    DATA: l_col_count like s_fieldcat-col_pos.
    l_col_count = 1.
    CLEAR s_fieldcat.
    s_fieldcat-col_pos = l_col_count.
    l_col_count = l_col_count + 1.
    s_fieldcat-tabname = i_project.
    s_fieldcat-fieldname = 'PSPID'.
    s_fieldcat-datatype = 'CHAR'.
    s_fieldcat-outputlen = '10'.
    s_fieldcat-seltext_l = 'Project Number'.
    s_fieldcat-seltext_m = 'Project Number'.
    s_fieldcat-seltext_s = 'Project Number'.
    s_fieldcat-key = 'X'.
    s_fieldcat-fix_column = 'X'.
    s_fieldcat-just = 'C'.
    s_fieldcat-no_zero = 'X'.
    APPEND s_fieldcat TO gt_fieldcat.
    * and so on....
    ENDFORM
    FORM sort_layout.
    DATA: ls_sort TYPE slis_sortinfo_alv.
    REFRESH gt_sort.
    CLEAR ls_sort.
    ls_sort-spos = '1'.
    ls_sort-tabname = 'i_project'.
    ls_sort-fieldname = 'PSPID'.
    APPEND ls_sort TO gt_sort.
    CLEAR ls_sort.
    ls_sort-spos = '2'.
    ls_sort-tabname = 'i_project'.
    ls_sort-fieldname = 'POSID'.
    APPEND ls_sort TO gt_sort.
    ENDFORM. " sort_layout
    FORM build_layout.
    CLEAR gs_layout.
    * gs_layout-totals_before_items = 'X'.
    gs_layout-zebra = 'X'.
    gs_layout-numc_sum = 'X'.
    gs_layout-get_selinfos = 'X'.
    gs_layout-box_tabname = 'X'.
    gs_layout-info_fieldname = 'COLOR'.
    ENDFORM. "
    Reward alll helpfull answers
    Regards
    Pavan

  • Can we create Criteria based groups of computers?

    Hi Team,
    We have imported the computer objects to FIM portal and it has few attributes which can help creating the criteria based group of computers.
    But when we tried creating the criteria based security group, we were not able to select any custom object other than Users,Groups in the filter builder.
    We have added the computer objects in the Filter permission as well, but no luck.
    Any suggestions?
    Thanks and Regards, Siva Kumar Balaguru

    Hi Siva
    you definitely can do so.
    You have to modify the RCDC for Group creation. Look for "GroupingCalculatedMembers". within this section you will find a "FilterBuilder" section and here you Change "PermittedObjectTypes" to the list of your object types you
    want to be able to include in your Groups.
    Henry

  • Set Filter in Data Manager

    Hi Experts,
    Does anyone know how I can set the filter for the DM packages so that only members that I want to appear will be prompted to the users when they click the member selector for a specific dimension? Right now the only filter setup is for "CALC=N", what if I want to add another filter as default? Does anybody know where I can configure it?
    Thanks,
    Marvin

    Hi Marvin,
    The Data Manager member selector gives you a hierarchical view of a dimension's members so you can choose one or more of them, depending on the context. You can use the member selector anywhere you see a choose members button in the Data Manager interface, such as when you run a package. You can also use the member selector when you select a dimension and click the Show Member List button on the Data Manager toolbar. The Member Selector dialog box that displays after clicking the choose members button allows you to browse and select members. Additionally, you can save and load filters that you set up.
    When you create a filter by filling out the filter section of the member selector dialog box, you can save it and then reuse it later.
    You can use the Manage Filter button to save the filter, and then you can choose that filter from the User filter list to load the filter.
    To save and load member selector filters
    1. Access the member selector. For example, run a package and then click the choose members button.
    2. Choose the filter criteria from the filter lists.
    3. Click the Manage Filter button, type the name of the filter, and then click the Save button.
    4. To load the filter at a later time, choose it from the User Filter list at the top.
    5. To delete a filter, choose it from the User Filter list, click the Manager Filter button, and then click the Remove button.
    Hope this information helps.

  • Adding Campaign element desc in advance search criteria for campaigns

    Hi,
    We would like to add Campaign element description in the advance search criteria of the campaigns. The field is not available in the available list. How do we add it in the list so that we can make it searchable?
    Thanks
    A

    Hi Aman,
                      You can add a UI field from the view of the search component and write the search logic in any suitable badi. There are many threads based on search . Check in SAP SOlutions-> WEb UI category.
    Hope this helps.
    Regards,
    Ruby.

  • Performance factors for criteria based groups

    I am trying to understand what factors impact the performance of a criteria based group. I have read that member size has direct impact, but it does not make much sense, When a resource is updated, FIM looks for all criteria based groups that have criteria
    containing the attributes updated in the resource and recalculates the membership of those groups. So my understanding is that the performance of criteria based group is dependent on the criteria, not on the member size of the group. If you have a lot
    of criteria, then FIM will spend more time on evaluating the criteria and the chance of matching the attribute with the attributes updated in a resource will increase. The member size should not have much impact here.
    Yes, member size can be an issue, but that will not be limited to a criteria based group - that should apply to any groups with large number of members. Because that impacts the memory footprints and complexity of membership calculation both in Sync
    and in AD.
    Is my understanding correct, or I am missing something?

    If you have a lot of criteria, then FIM will spend more time on evaluating the criteria and the chance of matching the attribute with the attributes updated in a resource will increase.
    For this, I know that in FIM 2010 R2 a new optimization feature came which fetches the information of "Common Criteria" from maximum number of groups and sets and uses this feature for calculating the group membership in a much faster
    way which enhances the performance.
    You can also, use the Deferred option in groups for calculating group membership. It is also a feature of FIM 2010 R2 for better performance.
    http://technet.microsoft.com/en-us/library/jj863243(v=ws.10).aspx
    Regards,
    Manuj Khurana

  • How to set filter for few Setup Objects on Geneneral Foundation?

    Controlling the download of sub-entities:
    By default all sub-entities are downloaded. Pass a non-existing value
    for the parameter (primary key) of the sub-entity if you don't want to
    download a specific sub-entity.
    For example, if you don't want to download the values of a value set,
    then use following input to FLEX_VALUE attribute while setting filter;
    FLEX_VALUE='THIS_IS_A_NON_EXISTING_VALUE_I_DONT_WANT_TO_DOWNLOAD_VALUES'
    VALUE_SET
    Notes:
    - To download '$FLEX$.%' value sets pass '$FLEX$.%' argument.
    - Upload API automatically submits the hierarchy compiler request
    - FLEX_VALUE_SET_NAME is a required argument for download.
    You can find the following parameters in Set Filter screen of Value Set Values.
    VALUE_SET has subenities such as VSET_SECURITY_RULE, VSET_ROLLUP_GROUP and VSET_VALUE.
    Setting value for attribute FLEX_VALUE_SET_NAME downloads all the subentities. If you want
    to restrict the subentities, set appropriate filter at VSET_SECURITY_RULE, VSET_ROLLUP_GROUP
    and VSET_VALUE.
    Parameters:
    VALUE_SET
    | FLEX_VALUE_SET_NAME : Value set name.
    |
    +-VSET_SECURITY_RULE
    | FLEX_VALUE_RULE_NAME : Value set security rule name.
    | PARENT_FLEX_VALUE_LOW : Independent value for the dependent value sets.
    |
    +-VSET_ROLLUP_GROUP
    | HIERARCHY_CODE : Hierarchy (rollup group) code.
    |
    +-VSET_VALUE
    PARENT_FLEX_VALUE_LOW : Independent value for the dependent value sets.
    FLEX_VALUE : Flexfield segment value.
    DESC_FLEX
    Notes:
    - Upload API automatically submits the flexfield compiler request
    - Upload API automatically submits the DFV view generator request
    - APPLICATION_SHORT_NAME is a required argument for download.
    You can find the following parameters in Set Filter screen of Descriptive Flexfields.
    DESC_FLEX has subenities such as DFF_REF_FIELD, DFF_CONTEXT and DFF_SEGMENT.
    Setting value for attributes DESC_FLEX and DESCRIPTIVE_FLEXFIELD_NAME downloads all the subentities.
    If you want to restrict the subentities, set appropriate filter at DFF_REF_FIELD, DFF_CONTEXT
    and DFF_SEGMENT.
    Parameters:
    DESC_FLEX
    | APPLICATION_SHORT_NAME : Application Short Name.
    | DESCRIPTIVE_FLEXFIELD_NAME : Descriptive Flexfield Name.
    |
    +-DFF_REF_FIELD
    | DEFAULT_CONTEXT_FIELD_NAME : BLOCK.FIELD reference field name.
    |
    +-DFF_CONTEXT
    | DESCRIPTIVE_FLEX_CONTEXT_CODE : Context Code
    |
    +-DFF_SEGMENT
    END_USER_COLUMN_NAME : Segment Name
    APPLICATION_COLUMN_NAME : Column Name
    KEY_FLEX
    Notes:
    - Upload API automatically submits the flexfield compiler request
    - Upload API automatically submits the KFV view generator request
    - Upload API automatically submits the structure view generator request
    - APPLICATION_SHORT_NAME is a required argument for download.
    You can find the following parameters in Set Filter screen of Key Flexfields.
    KEY_FLEX has subenities such as DFF_REF_FIELD, DFF_CONTEXT and DFF_SEGMENT.
    Setting value for attributes APPLICATION_SHORT_NAME and ID_FLEX_CODE downloads all the subentities.
    If you want to restrict the subentities, set appropriate filter at KFF_FLEX_QUAL, KFF_SEGMENT_QUAL,
    ,KFF_STRUCTURE,KFF_WF_PROCESS,KFF_SH_ALIAS,KFF_CVR_RULE and KFF_SEGMENT.
    Parameters:
    KEY_FLEX
    | APPLICATION_SHORT_NAME : Application Short Name.
    | ID_FLEX_CODE : Key Flexfield Code.
    |
    +-KFF_FLEX_QUAL
    | | SEGMENT_ATTRIBUTE_TYPE : Flexfield Qualifier Name
    | |
    | +-KFF_SEGMENT_QUAL
    | VALUE_ATTRIBUTE_TYPE : Segment Qualifier Name
    |
    +-KFF_STRUCTURE
    | ID_FLEX_STRUCTURE_CODE : Structure Code
    |
    +-KFF_WF_PROCESS
    | WF_ITEM_TYPE : Workflow Item Type
    |
    +-KFF_SH_ALIAS
    | ALIAS_NAME : Shorthand Alias Name
    |
    +-KFF_CVR_RULE
    | FLEX_VALIDATION_RULE_NAME : Cross Val. Rule Name.
    |
    +-KFF_SEGMENT
    SEGMENT_NAME : Segment Name
    APPLICATION_COLUMN_NAME : Column Name
    MENU
    You can find the following parameters in Set Filter screen of Menus.
    PARENT_MENU_NAME Name of the menu to start downloading at. If this
    parameter is specified on its own, that menu and
    all its children will be downloaded. If specified
    with FUNCTION_NAME and/or SUB_MENU_NAME, then only
    the menu entry with that function and/or submenu name
    immediately under the PARENT_MENU_NAME will be
    downloaded.
    FUNCTION_NAME Function name to limit download to. If this parameter
    is specified then PARENT_MENU_NAME must also be
    specified in order to download menus. Specifies
    the function on a menu entry immediately under
    PARENT_MENU_NAME which will be downloaded; all other
    menu entries under PARENT_MENU_NAME will not be
    downloaded.
    SUB_MENU_NAME Sub Menu name to limit download to. If this parameter
    is specified then PARENT_MENU_NAME must also be
    specified in order to download menus. Specifies
    the Sub Menu on a menu entry immediately under
    PARENT_MENU_NAME which will be downloaded (along with
    all its children); all other menu entries under
    PARENT_MENU_NAME will not be downloaded.
    MENU_APP_SHORT_NAME Application short name of Menu. The menu on the resp
    for this application will be downloaded. If you
    pass this parameter, do not pass any of the other
    parameters; this parameter is only supported on its
    own.

    Oh never mind.... I figured it out myself helps to read up on the manuals. d'oh. sorry for the bandwidth waste...

  • How to capture the entries based on filter values in oo alv..

    Hi all,
    I have a scenario in my oo alv report, when the user select the any column on report and selects the filter option. In that the user can enters required values. Based on filter values the output will be displayed. Now how can i capture currently displaying entries on report.
    Thanks,
    Ashok

    Hi Jozef,
    Is that GET_FILTERED_ENTRIES( ) reads the indexes or values from the entries..?
    Thanks,
    Ashok

  • Run time error when set filter on the request id in the output query.

    Hi all,
    I am getting a run time error when I select the request id and set filter on that and  when i am selecting all the request id it contains around 2lacs values in that If i cliked ok on that .
    It popped up a msg like this
    " Run time error 61706
    Insufficient memory to perform operation "

    User was educated not to select the entire data in the filter

  • Problem in ALV set filter option

    Hi to all
    I have an issue regarding ALV report :
    I have developed an ALV report and it is showing report output correctly as required.
    when I further filter it on a particular field using SET FILTER OPTION , the length of the field is shorter than displayed.
    Why this happens so.
    BUT for the same field in a standard ALV report , it shows the same length as displayed in report.
    Please advice. As this is the standard ALV functionality.
    Thanks & Regards
    Anubhav gupta

    Hi Gupta,
    <li>Define layout structure
    data: wa_layout   TYPE slis_layout_alv.
    <li>Pass value like below
      wa_layout-colwidth_optimize = 'X'.
    <li>Pass this structure through fm
        CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
             EXPORTING
                  i_callback_program = program
                  it_fieldcat        = it_fieldcat
                  is_layout          = wa_layout
                  it_events          = it_events
             TABLES
                  t_outtab           = i_mard.
    Thanks
    Venkat.O

  • Display medium text in a 'set filter' box

    I have a hierarchy and populated all levels of text(small, medium, and long).  We want to display the medium text when reporting.  I have made all the required changes to display the medium text of the hierarchy for reporting.  That works great!  However, when you hit the 'set filter value', the filter box shows the hierarchy with the small text.  Is there a way to change the text display for the filter box?
    Thanks,
    Matt

    Take a look at the following thread:
    F4 help - Search values - I need key and text
    Hope this helps...
    Bob

  • ALV Question : How to set filter condition which contain dummy character?

    Hi,
    I want to set filter condition of ALV dynamicly (In my code),
    for example, set 'X' as filter condition in column "Description",
    I add the code successfully, but I can't get the correct filtered result, Why?

    Please post ur code here.
    U have to get a  handle to the IF_SALV_WD_FILTER interface
    data ref_filter   type ref to IF_SALV_WD_FILTER  .
    ref_filter ?= m_config_model->IF_SALV_WD_FIELD_SETTINGS~GET_FIELD( 'FIELD DESCRIPTION' )
    ref_filter->CREATE_FILTER_RULE( 
                       low_val = 'X'
    Now when u load the ALV tabl;e u should see a X value in the filter row, for the column 'FIELD DESCRIPTION'  and the filter should happen.
    As I said, pls paste ur code here.

  • How to hide one block of data based on Filter selections

    Hi,
    I have a requirement where I should show only one block based of filter selections provided at the Query Level.
    How can I achieve that?
    Regards
    Shirley

    Lets say you have a optional filter and you want to show block 1 if value are inserted and block 2 if no value selected.
    For this You can create a variable status =IsPromptAnswered("") it will return 1 if prompt is answered.
    In block property go to the hide if below formula is correct and for block 1 give   status =1 and block 2 give status=0
    I hope this will help.

  • Bug with criteria based groups in FIM R2 SP1

    Hello all,
    We experience following unusual behavior within the FIM portal (FIM R2 SP1) with criteria based groups, which looks like a bug.
    The behavior applies for all kind of criteria groups and can be reproduced with following steps:
      1. Open your criteria based group and click on your members tab: 
    2. Click on General Tabs 
    3. Click back to Members tab -->the criteria is not available anymore 
    Do anybody else experiences the same? This behaviour confuses our customers and leads to corrupted criteria based groups.
    Regards Fatih

    Hi,
    Please check the cache properties in Portal Configuration. Try and test your issue by increasing the cache values.
    I am not sure, it will help you or not. But a try.
    Regards,
    Manuj Khurana

Maybe you are looking for

  • System Folder errors after I changed all permissions on HD to read & write

    Hi, Two things may have caused probs on my new 2010 iMac (Snow Leopard), and Applecare is shut so I would really appreciate some help as I have urgent work. 1) INCORRECT PERMISSIONS I have been stupid. I clicked on Macintosh HD and changed all permis

  • What's the difference between a web site and a web application?

    I'm stumped trying to come up to a difference between a web site and a web application for myself. As I see it, a web site points to a specific page and a web application is more of some sort of 'portal' to content and information. But where I'm stuc

  • Spry Menu Bar Positioning Problem in IE

    I have a Dreamweaver-created Spry Menu Bar drop down menu which works perfectly in every browser on my Mac and on my PC . . . EXCEPT Internet Explorer (who woulda thunk it?!!) In all browsers except for IE, the 3 submenu items under "Door Systems" an

  • 1350xi All-In-One Printing problem

    I've had a 1350xi All-in-One printer for a long time, and just recently it began printing the test page (for aligning a new cartridge) every time it is turned on.  It doesn't seem to matter if it is connected to a computer or not.  How can I change t

  • Match

    I recently purchaed iTunes Match. Everytime that I try to Match my library of 6,900 songs, is gets to the point of uploading the 1,300 songs that do not match the iTunes Library. After uploading around 100 songs I get the following error message: Ple