infopath repeating table-duplicate elements - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

infopath repeating table-duplicate elements

Last post 02-03-2009 08:12 PM by yogaraj. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-29-2009 09:39 PM

    infopath repeating table-duplicate elements

    My form has a repeating table with 4 columns , column1 has textbox value , column2 has dropdownlist , column3 and column4 has datepicker control

    Dropdownlist is loaded from sharepoint library list(secondary data source)

    (note: data filter doesnot work in browser enabled form)

    When user enters data using repeating table

    like

    first row

    1. Name1  2. dropdownvalue1 3 .1/1/2008 4. 1/1/2008

    second row

    2. Name1  2. dropdownvalue1 3 .1/1/2009 4. 1/1/2009

    I should get a error message stating dat textbox value has repeating value or dropdownlist has repeating value and user should not be allowed to save the form.My form is browser enabled one I need this to be solved without any code

    Thanks

    Yoga

  • 01-30-2009 10:43 PM In reply to

    Re: infopath repeating table-duplicate elements

    Hi,

    You can avoid the duplicate values by putting the following expressions as data validation.

    count(/my:myFields/my:group1/my:group2[my:field2 != ""]) > 1 and (. = ../preceding-sibling::my:group2/my:field2 or . = ../following-sibling::my:group2/my:field2)

     

    and add the screen tip to say the user as there are duplicate values.

     

    Here /my:myFields/my:group1/my:group2 -> repeating group xpath

    My:field2 -> drop down list node name

     

    The same will be applied to the text box field.

    Swathip
    www.ggktech.com
  • 02-02-2009 12:59 AM In reply to

    Re: infopath repeating table-duplicate elements

    Thanx a  lot! Your solution worked .

  • 02-03-2009 07:10 AM In reply to

    Re: infopath repeating table-duplicate elements

    Hi,

    Once verify that ‘Always' option is selected or not in the drop down list properties. (Drop down properties -> Browser forms -> Always)

     

    Swathip
    www.ggktech.com
  • 02-03-2009 08:12 PM In reply to

    Re: infopath repeating table-duplicate elements

    Thanks a for your reply. It worked

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