Filter 2 drop-downs in the same repeating table? - InfoPath Dev
in

InfoPath Dev

Filter 2 drop-downs in the same repeating table?

Last post 08-30-2011 07:32 AM by shniggens. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-26-2011 08:08 AM

    Filter 2 drop-downs in the same repeating table?

    Hello,

    In my form I have a repeating table with 2 columns each with a drop-down pulling from the same data in my form.

    Group1

    ---------------------------------

    drop-down 1  |  drop-down 2

     

    I want to filter so that any previous value won't be shown in either drop - down.

    It works fine in one column when I do the formula --  not(@field1 = current()/preceding-sibling::Group1/my:drop-down 1)   and following-sibling.

    I need it to also filter so that it filters out the repeating drop-down from drop-down 2 also (and visa-versa).  I tried adding not(@field1 = current()/preceding-sibling::Group1/my:drop-down 2) to the same filter, but that didn't work.

  • 08-30-2011 12:52 AM In reply to

    Re: Filter 2 drop-downs in the same repeating table?

    Sounds like you've probably just missed a small detail somewhere - maybe misspelling a node name, or leaving out a my:.  Works perfectly fine in this form.

    I assume you also want to prevent duplicates within the same row, and I've added logic to do that too.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 08-30-2011 07:32 AM In reply to

    Re: Filter 2 drop-downs in the same repeating table?

    Thanks.  I got it to work.  My users will love that. 

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