Access name of currently opened file in InfoPath ? - InfoPath Dev
in

InfoPath Dev

Access name of currently opened file in InfoPath ?

Last post 02-20-2010 06:41 AM by ErnestoM. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-20-2010 07:46 AM

    Access name of currently opened file in InfoPath ?

    Hi,

    how do I programmatically access the name of the file that is currently opened in Infopath ?

    Thanks,

    Alin 

     

     

    Filed under: , ,
  • 02-20-2010 06:41 AM In reply to

    Re: Access name of currently opened file in InfoPath ?

    If you want to give it a shot, I think there might be a way to do this without code, just via rules. The form name is stored in the xml:

    <?mso-infoPathSolution solutionVersion="1.0.0.2348" productVersion="12.0.0" PIVersion="1.0.0.0" href="<XSN URL>" name="<URN SCHEMA INFO>"?>

    So you could use substring-before and substring-after to grab the href and then get the xsn name from that. Good luck!

    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.