Solved

Display Dynamic Time

Posted on 2004-10-28
274 Views
Last Modified: 2013-12-18
Hi,
Have a date/time computed field in a form. The formula for this field is @Now.
In the properties for this field, I've set only to display time.

It is displaying time correctly. However, it is not dynamic. When the form is composed, I want to display the time dynamically. I mean show the clock running.

Is this possible?
Kalios
0
Question by:kalios
    7 Comments
     
    LVL 24

    Accepted Solution

    by:
    You can use NotesTimer and set this field using timer event. You can find an example in help

    ~Hemanth
    0
     
    LVL 2

    Author Comment

    by:kalios
    my help is all messed up. It never returns correct information in the search.

    Can you please provide an example
    thanks
    0
     
    LVL 46

    Expert Comment

    by:Sjef Bosman
    Hemantha's right. Don't search, use the Index, go to NotesTimer.

    If not, go to www.lotus.com/ldd then Notes/Domino or so, then Documentation, you'll find the help-files under Products. A warning though: I've tried to solve lots of time(r)-related stuff with a NotesTimer, it proved to be the most unreliable feature under Notes. Don't make things too complicated or you will get very angry users ;)
    0
     
    LVL 46

    Assisted Solution

    by:Sjef Bosman
    Your example, from the Help:

    Dim elapsedTime As Integer
    Dim elapsedTimer As NotesTimer
    %INCLUDE "lsconst.lss"

    Sub Postopen(Source As Notesuidocument)
      Set elapsedTimer = New NotesTimer(1,  "Elapsed time since opening document")
      elapsedTime = 0
      On Event Alarm From elapsedTimer Call elapsedTimerHandler
    End Sub

    Sub elapsedTimerHandler(Source As NotesTimer)
      elapsedTime = elapsedTime + 1
    End Sub
    0
     
    LVL 14

    Expert Comment

    by:p_partha
    I saw this post yesterday and didn't answer as i knew that Sjef will answer.. Sjef has an affinity for  Notes timer class :)

    Partha
    0
     
    LVL 24

    Expert Comment

    by:HemanthaKumar
    0
     
    LVL 46

    Expert Comment

    by:Sjef Bosman
    Hi Bro, it's much appreciated! I won't mind if you use my line occasionally... ;)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: From Zero to Hero with Nodejs & MongoDB

    Interested in Node.js, but don't know where to start or how to learn it properly? Confused about how the MEAN stack pieces of MongoDB, Expressjs, Angularjs, and Nodejs fit together? Or how it's even possible to run JavaScript outside of the browser?

      In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
    Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    856 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now