removing duplicate elemens in repeating table - InfoPath Dev
in

InfoPath Dev

removing duplicate elemens in repeating table

Last post 01-28-2009 05:51 AM by Shiva. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-28-2009 02:19 AM

    removing duplicate elemens in repeating table

    My query is i have got repeating table with dropdownlist control.I populate the control from a sharepoint list. I need to ensure that the dropdown list controls in the repeating table doesnot hold duplicate value. (i.e) My dropdown list has values say A,B and C if first row dropdown list controls has the value "A" then second row dropdown list should not have the value "A" How to do this ??? Help Me Thanks Yogaraj
    Filed under:
  • 01-28-2009 03:59 AM In reply to

    Re: removing duplicate elemens in repeating table

    Hi,

    You need to add a filter in the drop down list.

    1. Go to drop down list properties.

    2. The values are coming from external source.

    3. Click on the button beside Entries box.

    4. Select the field from which the values are coming.

    5. Click Filter data. And click add.

    6. Select ‘The expression' in the first drop down and Write the following expression.

    not(<nodename of the field from secondary source> = current()/preceding-sibling::<main data source repeatingnode name>/<drop down node name>)

     

    If you give your data source (main and secondary) structure then I may give the exact expression.

    Swathip
    www.ggktech.com
  • 01-28-2009 05:15 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: removing duplicate elemens in repeating table

    Hello,

    You have to add one more same expression using ‘following-sibling' as Swathi mentioned above.

  • 01-28-2009 05:28 AM In reply to

    Re: removing duplicate elemens in repeating table

    Many thanks for your replies :) 

    Let me explain my issue in detail.

    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 enable 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/2

    Let me explain my issue in detail.

    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 enable 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.009 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.

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