accessing url of forms list within infopath - InfoPath Dev
in

InfoPath Dev

accessing url of forms list within infopath

Last post 10-13-2008 08:02 AM by wallem. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 10-10-2008 07:33 AM

    • wallem
    • Not Ranked
    • Joined on 08-28-2008
    • Posts 9

    accessing url of forms list within infopath

    Hello all,

     Is it possible to access the url of the site where a info path form is from ??

    I have a browser enabled form and i want to get the url form the site where it is from.

    Is ist possible to use a Spsite object from within c# code ??

  • 10-13-2008 12:17 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: accessing url of forms list within infopath

    Hello,

    We can get the form using SharePoint site url of the form. Below is the path to get the form,

    http://<ServerName>/<SharePointSiteName>/<SharePointLibraryName>/<FileName>.xml

  • 10-13-2008 02:06 AM In reply to

    • wallem
    • Not Ranked
    • Joined on 08-28-2008
    • Posts 9

    Re: accessing url of forms list within infopath

    Hello,

     Thanx for the answer but i dont think i made it all clear.

    When i am running a infopath form inside the browser i want the url of the list where the infopath form is from.

    When i make a new form i push new in the list the url of that list is what i want inside of my infopath code.

    But still thanks for the reaction

  • 10-13-2008 07:49 AM In reply to

    Re: accessing url of forms list within infopath

    This formula will get the URL of your form template, if that is what you are after:

    substring-before(substring-after(/processing-instruction()[local-name(.) = "mso-infoPathSolution"], 'href="'), '"')

    Hilary Stoupa

  • 10-13-2008 08:02 AM In reply to

    • wallem
    • Not Ranked
    • Joined on 08-28-2008
    • Posts 9

    Re: accessing url of forms list within infopath

    i am looking for the url of the sharepoint list where the form is from.

    This example gives the url of the formsserver. Is there maybe a way to access the sharepoint list url??

     i am looking for a way to retreive the url that looks like this.

    http://COMPUTERNAME/SITENAME/LISTNAME/Forms/

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