how to submit the infopath form data to sharepoint list?. - InfoPath Dev
in

InfoPath Dev

how to submit the infopath form data to sharepoint list?.

Last post 02-06-2009 01:04 AM by madhuri. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-07-2008 10:14 PM

    how to submit the infopath form data to sharepoint list?.

    please tell me how to do it?.

    i have gone thru following link.

    http://blogs.msdn.com/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx

    but i didn't find webservice code--list.asmx

    please tell me code for webservice

  • 12-07-2008 10:27 PM In reply to

    Re: how to submit the infopath form data to sharepoint list?.

    Hello Swapna,

    Take SharePoint Submit Data connection and add the following code on OnClick event.

    Code For Submitting to SharePoint:

    DAVAdapter SharePoint = (DAVAdapter)thisXDocument.DataAdapters["SharePoint Library Submit"];

    SharePoint.FileName = fileName;

    SharePoint.FolderURL = SharePointURL;

    SharePoint.Submit();

     

     

    Madhuri
    http://www.ggktech.com
  • 02-05-2009 11:51 PM In reply to

    Re: how to submit the infopath form data to sharepoint list?.

    can you describe this thing what is file name? what is sharepoint URL? how we can take sharepoint library submit connection. because this is for list...

    can we create a connection for list also from infopath interface?

  • 02-06-2009 01:04 AM In reply to

    Re: how to submit the infopath form data to sharepoint list?.

    Hello,

    filename is the name of form saved to the sharepoint and sharepoint url is the url of library.

    For example FileName:

    string
    formName = GetNodeValue("/my:statusReport/my:preparedBy");

    string fileName = formName + GetDateTimeString() + ".xml";

    Sharepoint Url:

    Add a secondary dom 'ViewOptions.xml' with a node SharePointURL and enter your sharepoint form library name in the SharePointURL node.

    To retrive the url:

    string SharePointURL = thisXDocument.GetDOM("ViewOptions").selectSingleNode("/ViewOptions/SharePointURL").text;

     

    Madhuri
    http://www.ggktech.com
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.