How to get file (Form) name? - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

How to get file (Form) name?

Last post 06-19-2008 02:54 PM by deborahh. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-05-2006 12:58 AM

    How to get file (Form) name?

    What is the code (in VBscript) that give me the file (form) name?
  • 06-05-2006 03:21 AM In reply to

    Re: How to get file (Form) name?

    Hi Liorlankri
    U can do it in a simpler way.
    1)Keep a field in ur datasource called FormName.
    2)U can update this field each time u submit or save the form.
    3)If u use a Submit dataconnection(eg to SharePoint),then there is an option to specify or select the Form Name from a field in the Datasource.
    Use this option to specify the name from the FormName field.

  • 06-05-2006 03:35 AM In reply to

    Re: How to get file (Form) name?

    I want to do it in my code ! I know that there is option doing it by the XDocument object. How to do it??
  • 01-25-2008 02:51 PM In reply to

    • KoopLaFez
    • Not Ranked
    • Joined on 01-22-2008
    • San Diego, CA
    • Posts 21

    Re: How to get file (Form) name?

    Did you ever figure out how to do this in code?  I'm having a similar problem

  • 06-19-2008 02:54 PM In reply to

    Re: How to get file (Form) name?

    You can get the path using XDocument.URI using VBScript. I've used it to pass the information to a field in the form. From that you can parse out the file name.


    strPath = XDocument.URI

    dim oInfo
    set oInfo = XDocument.DOM.selectSingleNode("//my:FormPath")
    oInfo.text = strPath

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