How to submit the form to a document library with relative path instead of hard coded path? - InfoPath Dev
in

InfoPath Dev

How to submit the form to a document library with relative path instead of hard coded path?

Last post 10-02-2008 08:19 AM by Connie. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-26-2008 03:59 PM

    • Connie
    • Not Ranked
    • Joined on 08-08-2008
    • Posts 6

    How to submit the form to a document library with relative path instead of hard coded path?

    Hi,

    We need to publish a form as a content type so we can reuse the template in different document libraries within the same MOSS site collection.

    We want to restrict the file name when user submit the form.  So, we create a data connection to submit the form with the custom file name.  However, we don't want to hard code the document library path.  For example, user A opens the form from document library A in site A, the form will be saved in site A library A. User B opens the form (same content type) from document library B in team Site B, the form will be saved in site B library B.

    How do we get the relative path?

    Thanks in advance.

     

     

     

     

  • 09-29-2008 09:33 PM In reply to

    • ravig
    • Top 500 Contributor
    • Joined on 06-21-2008
    • Posts 27

    Re: How to submit the form to a document library with relative path instead of hard coded path?

    HI,

     Keep your document library path in secondary xml file, so that user can change the path to his document library path.

    you can call this path in your code for submitting

    Ravi G
  • 10-02-2008 08:19 AM In reply to

    • Connie
    • Not Ranked
    • Joined on 08-08-2008
    • Posts 6

    Re: How to submit the form to a document library with relative path instead of hard coded path?

    Thanks for the response.  We build the template with InfoPath 2007 and save the template as 2003 version.  We tried to use 'thisXDocument.Solution.URI' to capture the document's current path.  However, it works only in the browser instead of client application.  Any idea?

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