Grab form URI after it's been saved, before it's been closed and reopened - InfoPath Dev
in

InfoPath Dev

Grab form URI after it's been saved, before it's been closed and reopened

Last post 07-15-2011 12:18 PM by enthdegree_. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-15-2011 12:13 PM

    Grab form URI after it's been saved, before it's been closed and reopened

    Hello everyone!

     I have a browser enabled InfoPath form up on a SharePoint site. When someone opens it, they fill in a bit of information, save the form to it's document library, click submit then close the form.

    The submit button has some custom C# behind it. Part of the code involves working with the forms URI. I tried using `this.Uri` but in my experience that that only works if you go to the template library and open a preexisting form. I need a way to get it after it's been saved but before it's been closed and reopened. Is there any way to do that?

     

    If not, at the very least is there a way to get the name of the form's template library?

    Thanks! 

    Klaus Fiedler
  • 07-15-2011 12:18 PM In reply to

    Re: Grab form URI after it's been saved, before it's been closed and reopened

    Perhaps I posted too soon; I just solved it!

    `this.Template.Uri.AbsoluteUri` works great.

     

    Edit: It works fine for the template's URI but not for the forms URI so I'm still stumped.

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