writting code to close webbased form - InfoPath Dev
in

InfoPath Dev

Having trouble finding a blog or post that answers your question? Check out our Custom Search Page

writting code to close webbased form

Last post 01-18-2008 08:48 AM by davidair. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-17-2008 05:41 AM

    • Jochen
    • Not Ranked
    • Joined on 01-15-2008
    • Posts 4

    writting code to close webbased form

    does anyone knows how it is possible to close a webbased form programatically?

    thx.

  • 01-18-2008 08:48 AM In reply to

    Re: writting code to close webbased form

    Off the top of my head I cannot think of an OM that would do it directly. However, you have a few options:

    - If you do not use submit, set up a bogus submit adapter and make sure the form is set to close on submit. Then call Submit() from your code. Note that the browser window will not be closed but instead a message will be displayed that the form has closed.

    - If you do use submit for other purposes or if you don't like that hack you can consider hosting your form in an ASPX page. It can respond to form events and do something such as closing the page altogether. This is more work, however.

    Good luck.

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2014 Qdabra Software. All rights reserved.
View our Terms of Use.