unique filter not unique - InfoPath Dev
in

InfoPath Dev

unique filter not unique

Last post 08-10-2009 08:55 AM by ben.oates. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-10-2009 07:20 AM

    unique filter not unique

    Hi all,

    I don't know what I am doing wrong here. I have a filter on a field from a SharePoint list and for some reason it is not returning unique values. It is returning all values.

    /dfs:myFields/dfs:dataFields/dfs:Stacks/@Stack_Name[not(. = preceding-sibling::dfs:Stacks/@Stack_Name)]

    I have used this approach before and it has worked a treat. I can't work out why it isn't working this time. It's probably something stupid but I can't spot it. If it helps, the field was originally the title on the list.

    Any suggestions?

    Thanks,

    Ben

  • 08-10-2009 08:55 AM In reply to

    Re: unique filter not unique

    Never mind, I worked out where I had gone wrong.

    /dfs:myFields/dfs:dataFields/dfs:Stacks[not(@Stack_Name = preceding-sibling::dfs:Stacks/@Stack_Name)]

    That works.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.