How to collect url - InfoPath Dev
in

InfoPath Dev

How to collect url

Last post 12-15-2009 04:15 AM by ErnestoM. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-14-2009 09:16 AM

    • Jonathan
    • Not Ranked
      Male
    • Joined on 11-24-2009
    • Wyoming U.S.
    • Posts 2

    How to collect url

    I have a browser enabled infopath webpart that displays on multiple pages and i want to collect the current url when the user submits the form so i can collect important product information on that page.

    How do I auto-populate the url into a field on the form?

    Thanks in advance..

    Jonathan

    Jonathan
  • 12-15-2009 04:15 AM In reply to

     All InfoPath forms have a PI (processing instructions) which will contain the href. Something like this:

    <?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:Form1:http---rgs-ru-Form1" href="file:///C:\YourInfoPathForm\manifest.xsf" solutionVersion="1.0.0.60" productVersion="11.0.6357" PIVersion="1.0.0.0" ?>

    You can use substring-before and substring-after to pull out the value of href.

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


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