Try interacting with the same timer at the same time using different windows. The Timer Add-on does provide some protection and explanation under these circumstances. Including user data in the relationship can prevent different users from getting an error message when attempting to access the same Timer. ✅ Online training for FileMaker development and FileMaker Certification Preparation: www.ProductiveComputingUniversity.com
@HVAC_Tips_Tricks_Calcs Hey Steve! Thanks for your comment and question.. The magic of these latest JavaScript add-ons and their ability to call a FileMaker script directly from within JavaScript, along with the ability for FileMaker to call a JavaScript function running inside a web viewer, largely came about with FileMaker 19. Yes, today you could write code to present a timer inside of a web viewer with version 16, but then having that integrate with the passing of data back to FileMaker may have to be done using older techniques like calling a FileMaker script using the URL protocol instead. With today's version of FileMaker 2024, you can get a lot further and more efficiently by comparison. And yes, you can use the total time amount inside a calculation once you move it to a traditional number field inside of FileMaker first. We'd love to see everyone using the latest version of FileMaker because its performance and power have never been better. Let us know if you need an estimate-we'd love to get you upgraded at a slight discount! In the meantime, if there are more questions, don't hesitate... - Marc and the PCI Staff 💻
@chikinggit Thanks for your question. The built-in add-ons from Claris are not really customizable beyond the built-in preferences in each configuration. Making this count down instead of up would require adjusting the JavaScript code, which is in a format that isn't exactly human-readable. It's embedded in a single field and it's "minified". It's possible perhaps that there could be a way to remove the minification so that the code could be readable and then manually adjust things so that the counter counts down. However, this would require some expertise in JavaScript and requires a decoding process to unwind the minified code in the field. If this is your first time hearing the term "Minified," I thought it prudent to put the definition here in case: “Minified” is a word primarily used in the context of web development. It refers to the process of removing all unnecessary characters from source code without changing its functionality. This includes removing whitespace, comments, and sometimes shortening variable names to reduce the file size. Minification is often applied to JavaScript, CSS, and HTML files to improve load times and performance of web pages.
Hello @Joe Magri thanks for your question here and sorry for the delay. You should be able to do this via your own script by calling the "TimerEvents" script and providing it the necessary script parameters along the way. To get started with this you could run the debugger when you push the timer button and see what the script does. There is a lot to it and there are context-based things to consider when highjacking the process. So, technically yes, it can be done but it wouldn't be a "simple" thing to do. You'd have to understand how the add-on works and what it requires to get it going. So, it would take some time with it because the level of complexity is far beyond normal FileMaker scripting. Hope that helps points you in a direction.
Hello, @Oreste Schiavone Great question! Out of the box, the built-in add-on settings don't accommodate an option to count down. To do that, you'd need to adjust the javascript used for the timer itself which would require a bit of work under the hood. You could also consider using existing JavaScript and incorporating that in the FileMaker Web Viewer. Here is a JavaScript example: www.sitepoint.com/build-javascript-countdown-timer-no-dependencies/ And here is a video we created demonstrating how to get started incorporating JavaScript in a web viewer: ua-cam.com/video/CJ-q9ggiubE/v-deo.html
Try interacting with the same timer at the same time using different windows. The Timer Add-on does provide some protection and explanation under these circumstances.
Including user data in the relationship can prevent different users from getting an error message when attempting to access the same Timer.
✅ Online training for FileMaker development and FileMaker Certification Preparation: www.ProductiveComputingUniversity.com
Great video. Thanks.
Is this add on available for FM 16? Also is there anyway to use that total time in a calculation?
Thanks.
@HVAC_Tips_Tricks_Calcs Hey Steve! Thanks for your comment and question.. The magic of these latest JavaScript add-ons and their ability to call a FileMaker script directly from within JavaScript, along with the ability for FileMaker to call a JavaScript function running inside a web viewer, largely came about with FileMaker 19. Yes, today you could write code to present a timer inside of a web viewer with version 16, but then having that integrate with the passing of data back to FileMaker may have to be done using older techniques like calling a FileMaker script using the URL protocol instead. With today's version of FileMaker 2024, you can get a lot further and more efficiently by comparison.
And yes, you can use the total time amount inside a calculation once you move it to a traditional number field inside of FileMaker first.
We'd love to see everyone using the latest version of FileMaker because its performance and power have never been better. Let us know if you need an estimate-we'd love to get you upgraded at a slight discount!
In the meantime, if there are more questions, don't hesitate... - Marc and the PCI Staff 💻
How can you reverse the timer and have it count down, then triggers an alarm if let's say there's only 15 minutes left?
@chikinggit Thanks for your question. The built-in add-ons from Claris are not really customizable beyond the built-in preferences in each configuration. Making this count down instead of up would require adjusting the JavaScript code, which is in a format that isn't exactly human-readable. It's embedded in a single field and it's "minified". It's possible perhaps that there could be a way to remove the minification so that the code could be readable and then manually adjust things so that the counter counts down. However, this would require some expertise in JavaScript and requires a decoding process to unwind the minified code in the field.
If this is your first time hearing the term "Minified," I thought it prudent to put the definition here in case: “Minified” is a word primarily used in the context of web development. It refers to the process of removing all unnecessary characters from source code without changing its functionality. This includes removing whitespace, comments, and sometimes shortening variable names to reduce the file size. Minification is often applied to JavaScript, CSS, and HTML files to improve load times and performance of web pages.
Any idea how i can activate this timer within a script? Thanks
Hello @Joe Magri thanks for your question here and sorry for the delay. You should be able to do this via your own script by calling the "TimerEvents" script and providing it the necessary script parameters along the way. To get started with this you could run the debugger when you push the timer button and see what the script does. There is a lot to it and there are context-based things to consider when highjacking the process. So, technically yes, it can be done but it wouldn't be a "simple" thing to do. You'd have to understand how the add-on works and what it requires to get it going. So, it would take some time with it because the level of complexity is far beyond normal FileMaker scripting. Hope that helps points you in a direction.
Some good ideas here.
Glad you think so! Thanks for watching!
Can you count down?
Hello, @Oreste Schiavone Great question! Out of the box, the built-in add-on settings don't accommodate an option to count down. To do that, you'd need to adjust the javascript used for the timer itself which would require a bit of work under the hood. You could also consider using existing JavaScript and incorporating that in the FileMaker Web Viewer. Here is a JavaScript example: www.sitepoint.com/build-javascript-countdown-timer-no-dependencies/ And here is a video we created demonstrating how to get started incorporating JavaScript in a web viewer: ua-cam.com/video/CJ-q9ggiubE/v-deo.html