Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Working example of stopwatch

Avatar

Level 2

I am JavaScript beginner; I need to add a Stopwatch (counting up) in the footer of the Master Page.   I found a few JavaScript samples online, but in my case, the stopwatch must start when the pdf is opened and stop after the close button is hit in the last page.  I am having problems calling the functions to process and populate the field.   Does any one have a working example of a stopwatch pdf or xdp?

Thanks,

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Please send an email to stwalker.adobe@gmail.com and I will forward the sample I built.

Steve

View solution in original post

4 Replies

Avatar

Former Community Member

Do you mean you want a timer, as in a form object displaying ascending time in hh:mm:ss?

Steve

Avatar

Level 2

Yes Steve, you are 100%  correct, I need a form object displaying ascending time in hh:mm:ss?  the customer wants to be able to keep truck of the time each interview takes.  I do not need a Star/Stop nor reset button.

Thanks

Avatar

Correct answer by
Former Community Member

Please send an email to stwalker.adobe@gmail.com and I will forward the sample I built.

Steve

Avatar

Level 2

Thank you very much Steve, it really helped me understand the logic behind the events.

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----