How to save Infopath XML instance to same filename - InfoPath Dev
in

InfoPath Dev

How to save Infopath XML instance to same filename

Last post 07-13-2010 05:57 AM by sk92u. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-12-2010 11:53 AM

    • sk92u
    • Not Ranked
    • Joined on 06-10-2010
    • Posts 6

    How to save Infopath XML instance to same filename

    Hello Everyone,

    I need your help regarding saving the InfoPath instance to same filename. Here is the brief description of my requirement

    I designed a client based InfoPath 2007 form and published onto the library as an XML (so that each instance or list item created will be an XML file). And a workflow is associated to this library for creating new list item ( i.e, XML instance), whenever there is any change to existing items. So my question is how can I retrieve the instance name (i.e., File1.xml) when it is clicked or opened, so that I can set this filename to a textbox control field in Infopath and use this field in 'Submit' to overwrite to the same instance.

    I dont know how to retrieve the filename in Loading event, when the form is opened to edit. Is there any webservice or any function avaialbe to get the filename.

    Appreciate your help. Thanks.

     Suhail

  • 07-13-2010 05:47 AM In reply to

    Re: How to save Infopath XML instance to same filename

    Hi Suhail,

    You really should not need to retrieve the filename when the form opens, if you are submitting a regular (out of the box) SharePoint submit data connection to a form library. From InfoPath, did you do File > Publish to create the SharePoint form library? Here are some links that may help:

    http://bytelab.blogspot.com/2008/06/submit-infopath-forms-to-sharepoint.html

    http://www.bizsupportonline.net/sharepoint-infopath-integration.htm

    Hope this helps!

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 07-13-2010 05:57 AM In reply to

    • sk92u
    • Not Ranked
    • Joined on 06-10-2010
    • Posts 6

    Re: How to save Infopath XML instance to same filename

    Hi ErnestoM,

    The reason I need to retrieve the filename is to submit the form to same file or simply saying overwriting on the same opened form. However I found the way to retrieve the filename opened for editing. I appreciate your reponse. Thank you.

     Suhail

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