LiveCycle form stop watch

Is it possible to create a stop watch that the form user can start and stop as many times as needed. When finished, the total time recorded by the stop watch would be displayed.
Example:
User starts the stop watch at 08:08:00 stop watch displays 00:00:00
User stops the stop watch at 08:45:10 stop watch displays 00:37:10
User starts the stop watch at 09:15:00 stop watch displays 00:37:10 (when started but shows time accumulating)
User stops the stop watch at 09:30:25 stop watch displays 00:52:35
Total time recorded is displayed 00:52:35
If someone has an example form, I would appreciate your help. I have seen a stop watch in an Acrobat form but do not know how to convert it to LiveCycle.

I understand how to get the current time and the time when the clock is stopped. I also understand how to subtract the numbers and then convert them back to time. I have never used variables. I know where they go and how to create them but do not know how to use them in a script. Is there any chance to could create an example? I need to be able to start and stop the clock several times and end up with the total time recorded.
Does anyone have an example LiveCycle form with a stop watch? Am I the only one who has ever needed this?

Similar Messages

  • Add Stop Watch in Form using LiveCycle Designer

    Hi,
    How can I add a stop watch into a Form created with Adobe Live Cycle Designer 8.0?
    Basically I'd like the following:
    I am creating a read-out form for a radiologic study. So the reader should be able to push a button on the very beginning of the form which should trigger a stopwatch to start. At the very end of the form, there should be a 2nd button which the reader can push when he's finished reading and filling out the form to stop the stop watch which was running in the background. The resulting time should then be displayed and saved in a field for export to Excel later on. Is this possible using JavaScript?
    If this doesn't work, alternatively there could be a button to push in the beginning of the form which would put the actual Date/Time in a Field and at the bottom of the Form a second button which would again show the actual date/time in a field. This way I would export the two fields into Excel and then let Excel calculate the needed time to fill out the form.
    When I add a Date/Time Field, it updates, whenever someone makes a change to the form.
    Thank you for your help,
    Olivio Donati

    There is no stop watch per se.... but your technique of getting the time should work here. On the click event of the Start button you will need to record the time in a hidden field (so you can get at it later). On the Finish button you can record the time again and then get the difference between the stop and start time. FormCalc has some built in functions that will change a given time to the number of milliseconds that have elapsed from a specific epoch. You will need this to do the time calc.

  • Problems with a simple stop watch program

    I would appreciate help sorting out a problem with a simple stop watch program. The problem is that it throws up inappropriate values. For example, the first time I ran it today it showed the best time at 19 seconds before the actual time had reached 2 seconds. I restarted the program and it ran correctly until about the thirtieth time I started it again when it was going okay until the display suddenly changed to something like '-50:31:30:50-'. I don't have screenshot because I had twenty thirteen year olds suddenly yelling at me that it was wrong. I clicked 'Stop' and then 'Start' again and it ran correctly.
    I have posted the whole code (minus the GUI section) because I want you to see that the program is very, very simple. I can't see where it could go wrong. I would appreciate any hints.
    public class StopWatch extends javax.swing.JFrame implements Runnable {
        int startTime, stopTime, totalTime, bestTime;
        private volatile Thread myThread = null;
        /** Creates new form StopWatch */
        public StopWatch() {
         startTime = 0;
         stopTime = 0;
         totalTime = 0;
         bestTime = 0;
         initComponents();
        public void run() {
         Thread thisThread = Thread.currentThread();
         while(myThread == thisThread) {
             try {
              Thread.sleep(100);
              getEnd();
             } catch (InterruptedException e) {}
        public void start() {
         if(myThread == null) {
             myThread = new Thread(this);
             myThread.start();
        public void getStart() {
         Calendar now = Calendar.getInstance();
         startTime = (now.get(Calendar.MINUTE) * 60) + now.get(Calendar.SECOND);
        public void getEnd() {
         Calendar now1 = Calendar.getInstance();
         stopTime = (now1.get(Calendar.MINUTE) * 60) + now1.get(Calendar.SECOND);
         totalTime = stopTime - startTime;
         setLabel();
         if(bestTime < totalTime) bestTime = totalTime;
        public void setLabel() {
         if((totalTime % 60) < 10) {
             jLabel1.setText(""+totalTime/60+ ":0"+(totalTime % 60));
         } else {
             jLabel1.setText(""+totalTime/60 + ":"+(totalTime % 60));
         if((bestTime % 60) < 10) {
             jLabel3.setText(""+bestTime/60+ ":0"+(bestTime % 60));
         } else {
             jLabel3.setText(""+bestTime/60 + ":"+(bestTime % 60));
        private void ButtonClicked(java.awt.event.ActionEvent evt) {                              
         JButton temp = (JButton) evt.getSource();
         if(temp.equals(jButton1)) {
             start();
             getStart();
         if(temp.equals(jButton2)) {
             getEnd();
             myThread = null;
         * @param args the command line arguments
        public static void main(String args[]) {
         java.awt.EventQueue.invokeLater(new Runnable() {
             public void run() {
              new StopWatch().setVisible(true);
        // Variables declaration - do not modify                    
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton2;
        private javax.swing.JLabel jLabel1;
        private javax.swing.JLabel jLabel2;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JPanel jPanel1;
        // End of variables declaration                  
    }

    Although I appreciate this information, it still doesn't actually solve the problem. I can't see an error in the logic (or the code). The fact that the formatting works most of the time suggests that the problem does not lie there. As well, I use the same basic code for other time related displays e.g. countdown timers where the user sets a maximum time and the computer stops when zero is reached. I haven't had an error is these programs.
    For me, it is such a simple program and the room for errors seem small. I am guessing that I have misunderstood something about dates, but I obviously don't know.
    Again, thank you for taking the time to look at the problem and post a reply.

  • Create Livecycle form that can not be overwritten - (template)

    I have forms saved in a central location (folder) on our company network. Is there a way to create a Livecycle form that has Reader extended features enabled and can act as a master template requiring the form to be saved to a different name when saved, protecting the template? (Like a Word .dot)

    Scott (past-tense) has the easy answer.  Of course, it does not stop someone from changing the Read Only setting, unless this is on a server and the security settings are used instead of the file's properties.
    Another possibility COULD be to use the form's preSave event to chack for the file name and change it if the original template is open.  the problem is that this probably requires a client side script file with a function to chang the file name.  I don't think it can be in a script in the file. It may not even be possible at all.  The preSave event occurs before the file is saved, but cannot be used to stop the file from being saved. The idea would be to make sure the template file name is not used when the file is saved.  Not knowing the preSave event too well, though, I cannot say if changing the name would be applied before the save or not.
    The file's top form presave would be something similar to:
    if (event.target.documentFileName == "template.pdf")
                        //Change the file name to be saved.
    See here for some guidance on setting the file name
    : XFA form with button to save file with unique filename
    Karl S

  • LiveCycle Form Timer Example Needed

    Does anyone have a LiveCycle form count up timer example they can share? The timer needs to have a start and stop buton and a reset/clear button.
    I have seen an example in an Acrobat form but do not know how to create one in LiveCycle.
    Thank you

    I'm not sure why that happens in the preview. Does it stop completely? I've had experience where the preview doesn't work and the stand alone app does and in most cases I'm just happy it works in the standalone and leave it at that.
    For the time format put the following code in the calculate event (or whatever event you want) of the TextField you want to see it formatted, where TextField1 is the field showing the total amount of seconds:
    var
    a = TextField1.rawValue;
    seconds = a % 60;a /= 60;
    minutes = Math.floor(a % 60);
    a /= 60;
    hours = Math.floor(a % 24);
    this.rawValue=hours+":"+(String(minutes).length==1 ? "0":"")+minutes+":"+(String(seconds).length==1 ? "0":"")+seconds;
    I'm sure there's probably a FormCalc trick or display pattern out there that mitigates the need for all that code but this works too.
    Kyle

  • How to use Adobe LiveCycle Forms Standard / Pro to leverage features in Adobe Reader

    Can someone please tell me how to use the Adobe LiveCycle Forms Standard or Pro module to leverage features in Adobe Reader? Do you also need to have the Reader Extensions Module?
    The forms data sheet says that it is possible to leverage features in Adobe Reader but does not go on to detail how.

    Depends on your deployment pattern.  You can just use Reader Extensions if you're publishing forms on a site, if you need to prefill or perform other processing on the template then LiveCycle Forms is needed.  If you want to render to HTML5 for tablet support then Forms Pro is needed.

  • Form created with Livecycle Designer with a SQL database - do you need LiveCycle Forms installed?

    Hello,
    I'm REALLY hoping someone here can help me, I have spent over four hours on the phone to Adobe in the last 3 days and I'm getting no where what-so-ever. I can't even find out where /how to complain about it! (but thats another story)
    Here's my situtation:
    I work for a company with approx 140 staff. On one computer, we have Adobe Livecycle Designer ES installed, and we have used that program to create a form which has a link to a SQL database.
    The link in this form doesn't work on the other computers which has the basic (free) Adobe Reader. From doing research within these forums
     , I have found that the form will not work on other computers unless they have Adobe Livecycle forms installed on their machines. 
    What I need to know (and what they cannot seem to tell me when I call), is two things:
    Is it correct that in order to use a form created in Livecycle Designer which has a link to a SQL database, that the machine must have LiveCycle forms installed?
    How much does Adobe LiveCycle Forms costs?
    PLEASE, if you can answer this question, I would REALLY appriciate it....
    Thank you!

    I presume you are asking if you need Livecycle Forms ES? Forms ES is a component of the livecycle software suite intended as a document service which will be installed on a server within the organisation. A couple of things this document service can do is to render XDP into multiple formats (PDF, html, etc.), execute script server side (for example the database connection) on behalf of the client (reader, etc.), integrate with backend components, etc. So no you do not install this on each client.
    For database connections to work, you either have a server with Forms ES installed which can connect on each clients behalf (ie. Client->Forms ES Server->Database), or you have a reader-extended PDF to allow connections to be use in the free basic Reader (i.e. direct calls to the database or using web service calls to your own database components). However, reader-extended pdf would probably require Reader Extensions ES component installed on a server (you once off extend your developed pdf through this and then hand it out to each of the end users). Not sure if the Acrobat Reader extensions will cover this functionality since I have not tried that. I dont think it does. Otherwise you would need full acrobat on each client.
    How much database integration is your form actually doing at the moment? read only? Full access? And how many clients do you expect to hit your database? Depending on what you need the form to do, there is always the option to try and build the integration yourself. Do simple http submits from the browser (hosting reader as a plugin) to some component somewhere which in turn hits your database. Wouldnt require additional licensing but alot more development work.
    As for cost for the various components, thats a question only Adobe can answer for you since they all sit squarely in the enterprise space and licensing for that is not as simple as off the shelf products.
    Maybe someone else has a view on it or has an alternative.

  • Acroread 8.1.2 unable to process PDF 1.6 documents generated by Adobe LiveCycle Forms 7.0

    Our workflow uses LiveCycle Forms to generate PDF 1.6 documents with embedded JavaScript and XML. These PDFs work fine with Adobe Reader 8.1.2 on Windows; they display correctly, the interactive fields work as expected and the documents can be printed properly.
    However, acroread 8.1.2 on Solaris is not able to process the same documents correctly. When we run acroread headlessly as follows:
    cat xxx.pdf | acroread -toPostScript -level2 > xxx.ps
    the resulting PostScript file displays a message saying "To view the full contents of this document, you need a later version of the PDF viewer. You can upgrate to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html"
    I have confirmed that we are using the latest version of acroread for Solaris.
    Does anyone have any insight into why this message is being generated by acroread 8.1.2?
    edit: acroread is able to process other PDFs as above without problem. It only has problems with PDFs generated by LiveCycle Forms which include embedded JavaScript and XML.

    Neha,
    Thanks for the response.
    We are running acroread headlessly since it is on a remote server that we access via telnet. Without an XServer session, I can't tell whether acroread is able to read and display the PDF files normally. However, we can view the PDFs with Adobe Reader 8.1.2 on Windows and the acroread -toPostScript command-line that we are using does work properly with other PDFs.
    I will email you a copy of a problematic PDF shortly.
    Regards,
    Steven Dickson

  • Connecting to a Database from a LiveCycle form

    Good morning everyone,
    I've been working at understanding how to connect to a database via my livecycle form and up to here, i can easilly enough connect to an ACCESS DB.
    I created an ODBC,
    a simple 1 table MS Access DB
    and a simple form that connects to that DB via the ODBC.
    My question is, how do i set this up if i want my clients to use this form? i cant really have that ODBC installed on all their machines, so how can i have this setup instead?
    I do have access to a LiveCycle server, but i only have the Extended reader module installed, nothing else. Can it be done and if so, how would i go about setting this up?
    If i can get that to work, this would open up a lot of possibilities where i work at.
    So what i need is a way to mimic that ODBC setup, but without having to create 5000 ODBC connections on my clients machines
    If you need clarifications on anything, please don't hesitate to  ask.
    Thank you yet again,
    PAtrick

    Hi Patrick,
    You can create a process in workbench which will make the JDBC calls and bring the data (See this - http://help.adobe.com/en_US/livecycle/9.0/services.pdf)
    Then you can use the SOAP endpoint of this process in the LiveCycle form and invoke the process
    Hope this helps.
    ~Varun

  • Need to add flex grid in livecycle form to generate dynamic PDF

    Hi,
    not sure this is the right fourm or not, but I require a way to add flex data grid in my livecycle form to generate PDF containing flex grid.
    I tried adding a flex swf in Flash Field in Live cycle but it is giving me
    Error #2032: Stream Error. URL: file://PDFMedia026281/g/framework4.6.0.23201.swf
    I am new to this environement so any help would be great.

    Hi,
    with Designer ES3 (formerly know as ADEP Designer) you can use Flash files within XFA forms.
    Check Niall O'Donovan's article.
    He has prepared a nice example of using flash charts which can be manipulated at runtime.
    http://www.assuredynamics.com/index.php/2011/10/whats-new-in-adep-designer/

  • Adobe LiveCycle Form Not Saving Data

    I have designed dozens of Adobe LiveCycle forms and have extended rights (enable usage rights in adobe reader).  My problem is that sometimes the form is not saving the data for end users.  One of my end users even updated Adobe Reader, but still nothing is working and he is becoming increasingly frustrated.  Any other suggestions.

    Make sure all your fields have a binding set even if it is just their name.
    For instance, click on a field that isn't saving, in the Object palette, under the Binding tab make sure the Data Binding is set to Use Name.
    Hope that helps.
    Kyle

  • How to merge static pdf files and dynamic livecycle forms

    Hello,
    I was wondering if there was a way to merge static pdf pages with a dynamic livecycle form to create one file.
    Thanks,
    -vargs

    Hi, Steve.
    I have a similar situation. I would like to combine static PDF documents with some forms created using LiveCycle Designer. I read your previous post and I am aware that I can combine them using Acrobat Pro.
    My question concerns accessibility.
    If I combine a static PDF document and a dynamic form created with LiveCycle, would the resulting PDF still be accessible enough for JAWS to read it properly?
    Any help appreciated.
    Wayne

  • Livecycle form crashes Reader and Acrobat

    I've created a Livecycle form that has been working great. However, a user managed to corrupt it somehow and now it causes both Reader and Acrobat to freeze and then close when trying to load it. I also tried it in Nuance which causes a freeze but not an app close. However I noticed in task manager that while frozen, Nuance's memory consumption continues to grow.
    Is there anyway to debug this to determine what is going on? Any other suggestions on how I can try to determine what is happening?

    Hi,
    Does the form crash when you do a preview in LiveCycle Designer?  Have you got "When exception thrown" set to break in JavaScript preferences, maybe you can see an exception in the console?
    Regards
    Bruce

  • Digital Sinature in Livecycle Forms

    Hello,
    For our employees to get approval on specific online livecycle forms like reimbursment from the manager, the digital signature field looks quite convincing.
    How do we implement it with verisign?
    Which product from (Verisign) would be best for our needs -
    Digital IDs for Secure Email
    Certified Electronic Document Signing for Individuals?

    You would need to consult with VeriSign to determine the actual product you should invest in, and how to implement their PKI. 
    That being said, a digital signature on a PDF is created using an x509 compliant digital certificate.  These certificates can be self-signed (created with Acrobat Pro or some other third party utility) or by a Certificate Authority such as VeriSign.
    You may also want to look at "electronic" signatures that are supported on PDFs using the signature field object and usually a plugin to Reader or Acrobat.  Check out the "electronic and digital signature hardware and software" category at the link: http://www.adobe.com/security/partners/index.html
    Regards
    Steve

  • Inserting Livecycle page into a different Livecycle form

    I've been searching around for an answer for a while, but I haven't seen a similar question.
    I currently have a Livecycle form made up of several pages, and I am trying to insert a page from a different form. For example, I have 8 pages in form A, and I am trying to insert form B into the 9th page of A, but I cannot find anything in the menus about inserting a page from another form. Can this be done? They have both been created in Livecycle Designer ES v 8.2.1, and they are both editable forms (which they need to be kept as such.)

    Hi,
    you can use fragments to reuse portions of a form in other form.
    Here's a small tutorial about fragments.
    http://forms.stefcameron.com/category/form-fragments/

Maybe you are looking for

  • Video out doesn't work anymore

    The video out doesn't work properly any more on my G4 12inch powerbook. It had been working fine, but now it doesn't work properly with either of the mini-vga adapters that came with my powerbook. When using the mini-vga to composite/s-video, the ima

  • How to use two audio souces in one multicam clip

    I have a three cameras, and an additional audio source.  Making the multicam clip with of the four elements was easy, however I would like to use both the audio from two different sources at the same time.  Is this possible?  I know about switching t

  • How can I download and print my colour collection with Adobe Kuler?

    Hello, I want to download and print my themes collection of colours, how many times I tried unsuccessful. Thank you

  • Sorting with Comparator, wrong order?

    Hello, i've a string array, and every string in this array in form of "Firstname [MiddleName] LastName". After i sort the array i get "List A" below, but i expect to get "List B". All "Alp"s must be together like dictionary order, isn't it? What caus

  • Migrating from one SLD to another

    Hello, We are trying to migrate from an SLD on 6.40 to an SLD on 7.0. The SLD 6.40 will remain until all systems are on the 7.0 box.  Can we do an export/import of the Technical and Business Landscapes, or doe we have to re-register each system using