Duplicated ID's inside datasource dropdown box - InfoPath Dev
in

InfoPath Dev

Duplicated ID's inside datasource dropdown box

Last post 10-09-2007 12:05 PM by adamrharding. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-09-2007 06:53 AM

    Duplicated ID's inside datasource dropdown box

     

    Hello!!

     I have an infopath form that gains ID numbers from a sharepoint list. The problem is some of my ID numbers are duplicated. Basically i created a datasource, this enables the ID numbers to be displayed inside a dropdown box. However some of them are duplicated. Is there a way i can just get one of them to display?

     

    Many thanks

  • 10-09-2007 07:57 AM In reply to

    Re: Duplicated ID's inside datasource dropdown box

    Hi

    Not natively.  Unfortunately you would have to filter your list to achieve this or write some code to dedupe it.

    Sorry

    Adam Harding
    Wales
    UK
  • 10-09-2007 08:04 AM In reply to

    Re: Duplicated ID's inside datasource dropdown box

     

    Ok thanks. Do you know anywhere i can get hold of some sample bits of code to achieve this?

     

    Many thanks

  • 10-09-2007 12:05 PM In reply to

    Re: Duplicated ID's inside datasource dropdown box

    I think the follwing would be easier than writing code. It would be very easy to do with a query in SQL or Access so export the list and use a query with the SELECT DISTINCT statement in SQL to just pull back the DISTINCT values. Sorted Cheers
    Adam Harding
    Wales
    UK
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.