How to create a timer for an InfoPath form? - InfoPath Dev
in

InfoPath Dev

How to create a timer for an InfoPath form?

Last post 04-19-2006 09:27 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-19-2006 11:17 AM

    • rjaynes
    • Not Ranked
    • Joined on 04-19-2006
    • USA
    • Posts 2

    How to create a timer for an InfoPath form?

    Hi, I am trying to create a trouble ticket system that will help me keep track of tech support calls, then after I enter each "trouble ticket" I submit it to a database. I would like to know if there is a way to create a timer that would activate when the form is submitted to the database, and would stop when I reopen the ticket and change the Status to Completed/Closed. I would also like the length displayed at that point, or it could keep a continious count.

    I know what I am wanting is probably a very long process, but I would like to learn how to do it if there is a way.

    Thank you very much,
    Ryan
  • 04-19-2006 09:27 PM In reply to

    Re: How to create a timer for an InfoPath form?

    Hi Ryan,
    One way to do this is to save the current time in a field when the submit button is pressed but just before you submit to the DB. When the user reopens the form and changes status to Completed/Close, create an OnAfterChange handler that compares current time to submitted time and displays the difference. This will require a little coding but is pretty easy. The out-of-box samples that ship with InfoPath have some JS code that manipulates dates. Check out the Absence Request solution for some ideas.
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.