SharepointListQueryConnection.SiteUrl - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

SharepointListQueryConnection.SiteUrl

Last post 11-27-2009 07:52 PM by emdc2. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 06-30-2009 09:27 AM

    • emdc2
    • Not Ranked
    • Joined on 06-30-2009
    • Posts 7

    SharepointListQueryConnection.SiteUrl

    I'm currently working on a large InfoPath project and need to write code to programatically modify receive data connections. I have successfully modified the FileQueryConnection.FileLocation but the SharepointListQueryConnection.SiteUrl is set to read-only. Very frustrating.

     Does anyone know a way around this? Or, is there a way to programmatically create the entire SharepointListQueryConnection on the fly in code?

     Thanks.

  • 06-30-2009 11:32 AM In reply to

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

    Re: SharepointListQueryConnection.SiteUrl

  • 11-18-2009 04:18 AM In reply to

    • Dedek
    • Not Ranked
    • Joined on 11-05-2009
    • Posts 5

    Re: SharepointListQueryConnection.SiteUrl

    hi, emdc2

    did you find out any solution?

  • 11-18-2009 04:48 AM In reply to

    Re: SharepointListQueryConnection.SiteUrl

    hi emdc2,

    why dont you just use sharepoint object model to retrieve data, instead of creating data connections through UI, create them in code using object model.

    NOTE: they will work only for browser enabled forms

    Qazi Anis
    Technical Architect
    Bitwise Inc
  • 11-27-2009 10:16 AM In reply to

    • emdc2
    • Not Ranked
    • Joined on 06-30-2009
    • Posts 7

    Re: SharepointListQueryConnection.SiteUrl

    We did not find a solution to this. We hope Microsoft modifies this in the next version.

    We could not use the Sharepoint object model to retrieve the data because the forms are Infopath client forms - not browser enabled (the forms must work in a disconnected state).

  • 11-27-2009 06:04 PM In reply to

    Re: SharepointListQueryConnection.SiteUrl

    You can use UDC files in the rich client. UDC files normally have to be stored on SharePoint site, but I believe that you can work around that limitation. Or, if you have SharePoint, just convert the data connections to UDC files. The UDC file format is XML and you could use that schema to build an InfoPath form which you submit to the library (programmatically, updating the UDC to point to a new site).

    Patrick Halstead
    Project Manager at Qdabra
  • 11-27-2009 07:52 PM In reply to

    • emdc2
    • Not Ranked
    • Joined on 06-30-2009
    • Posts 7

    Re: SharepointListQueryConnection.SiteUrl

    You are correct. You can use UDC Connections with the rich client. As a matter of fact, we are currently using them in our solution. The problem with UDC connections is that they take a while to load and if you have a bunch of different connection the user has to wait for each one to load. We were trying to find a way around this performance issue.

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