Dynamic filter of Sharepoint list secondary connection. - InfoPath Dev
in

InfoPath Dev

Dynamic filter of Sharepoint list secondary connection.

Last post 03-02-2011 01:45 AM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-01-2011 07:29 AM

    Dynamic filter of Sharepoint list secondary connection.

    I have an Infopath form in which is wired up to a document library and wish to pull some related data from a secondary sharepoint list and write the value onto the form. For instance the document library has a field called "projectId" and the seconday list "Projects" also has a related field called "projectId". When the form opens I want to query or filter the secondary list for the associated project and use the row values from the filtered record.

     I was looking at using a web service to just query the list based on an existing value in the form or will the filter option on  a secondary datasource work?  How can I do this?

    Thanks.

     Ken

  • 03-02-2011 01:45 AM In reply to

    Re: Dynamic filter of Sharepoint list secondary connection.

    Hi Ken,

    You could do this using FilterOwssvr (client call to SharePoint Web service) or a Web Service (middle-tier filtering). Qdabra Software, sponsor of this free forum, provides qRules that has built-in support for FilterOwssvr. It's cheap (free trial available) and should be quick to add. If you prefer not to buy a third-party InfoPath plugin, you can just search this forum for FilterOwssvr. The web probably has some good docs on it too.

    The Web Service approach is slightly more flexible. Qdabra has an inexpensive web service suite called DBXL that provides a QuerySharePoint Web service. You can quickly install the free trial and use the Query Builder tool to configure your query and parameterize your onload logic to make it load quickly. You could spend time to write your own Web service and there are numerous threads here on InfoPathDev if you search and samples on InfoPath's blog.

    Best of luck!

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