Challenge - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Challenge

Last post 01-25-2009 09:07 PM by Wizard. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-21-2009 11:04 PM

    • Wizard
    • Not Ranked
    • Joined on 11-17-2008
    • South Africa
    • Posts 19

    Challenge

    Hi,

     

    Here is the scenario. We have +- 30 browser based forms. Currently we don’t use the submit option as they are published to a Content Type and made available in the different sites and libraries. We went with publishing to a Content type for administration purposes as we are talking about 100+ sites using the forms, so if changes are made we only publish to the content types again and all libraries would pick it up.

    We need to implement the submit option but can only specify an actual path when submitting to a SharePoint library, which we don’t have as it's scattered all over the place. What I need to achieve through managed code is the following:

     

    1.       Trigger the validation of the fields (it doesn’t work when you simply save the form)

    2.       Pickup the library URL from where the form originates from

    3.       Edit the Submit to URL to the above mentioned URL so that the form is stored in the correct library.

     

    Any advice/guidance would be much appreciated.

     

    Regards,

     

    Wizard

     

     

  • 01-24-2009 08:26 PM In reply to

    • Skarn
    • Top 50 Contributor
      Male
    • Joined on 04-20-2008
    • Australia
    • Posts 198

    Sorry, I don't use sharepoint, but to give you a reply in the absence of others so far:

    Could: var strSiteURL = XDocument.DataAdapters["Announcements"].SiteUrl
    give you the sharepoint url?

    or

    XDocument.UI.Alert("URI: " + XDocument.URI);

    or

    XDocument.UI.Alert("URI: " + XDocument.Solution.URI);

    If one of these (or another form property - the documentation of the Infopath object model has lots of gems throughout it) gives you the correct source site url then you could store it in a field and then set your submit adapter to use this field as the submitting address, or set the submit address via a code using it's associated dataconnection/submit adapter.

  • 01-25-2009 09:07 PM In reply to

    • Wizard
    • Not Ranked
    • Joined on 11-17-2008
    • South Africa
    • Posts 19

    Thank you. I actually found another solution I am busy implementing.

    http://msdn.microsoft.com/en-us/library/cc704269.aspx

    Thanks,

     

    Wizard

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