How to Submit to Sharepoint List - InfoPath Dev
in

InfoPath Dev

How to Submit to Sharepoint List

Last post 06-02-2014 07:44 AM by JeffVojtko. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-02-2014 07:39 AM

    How to Submit to Sharepoint List

    I have an InfoPath 2010 Client form with Full Trust and I need to submit the data to a Sharepoint list. (See Attachment) On the form I load up events from a Sharepoint list and I need to collect whether the user will Participate or Assist. I can't figure out the best way to get this to a Sharepoint list. What would a CAML file look like? I've only seen examples of a CAML from Main fields.
    Jeffrey J Vojtko
  • 06-02-2014 07:44 AM In reply to

    Re: How to Submit to Sharepoint List

    Notes on this form: Event, When and Location are Read Only. Participate and Assist are editable checkboxes. I would also be happy to get this form, as completed, into a Sharpoint library as a PDF. I tried entering the following VB code:

    Public Sub CTRL50_5_Clicked_1(ByVal sender As Object, ByVal e As ClickedEventArgs)
    Dim fileName As String
    Dim nameNode As XPathNavigator
    'Set the values. Replace "/my:myFields/my:textField" with the xpath to the field that has the value you want as the file name
    nameNode = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:Name", NamespaceManager)
    fileName = nameNode.Value + ".pdf"

    'Do the work -- notice we use the variable fileName as part of the path for the file
    Me.CurrentView.Export("http://mmsp/it/FacAdmSvcs/drs/cc1/" + fileName, ExportFormat.Pdf)
    End Sub

    And, the form is submitted to my library. The problem is that the Secondary data coming in isn't saved.
    Jeffrey J Vojtko
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.