The Timer control allows you to repeatedly execute a rule after a period of time. The period and the number of times is configurable. The Timer control can be used for example to keep track of the time spent on a specific Form, i.e. counting the seconds lapsed once the Form is run. It can also be used to refresh a list of values or data on a frequency without user intervention, e.g. shares prices, Twitter feeds, RSS feeds, etc. The Timer control is an action control and will therefore execute a rule action.
The Timer control is not a display control and will not surface at runtime.
Rule events:
Timer control methods:
At runtime, clicking the Button will execute the Ticked event without needing the interval to have passed. Using the execute the Timer control’s Tick method action requires the When the Timer is Ticked event in another rule or nothing will happen at runtime.
The Timer control interacts with other controls through rules. Depending on the control properties, there are certain actions where the control surfaces. Following are a few examples:
The Timer control is available in the Action section of the Controls found in the View Designer.
Property | Description | Can be set in runtime using Rules |
---|---|---|
Detail | ||
Name | A unique identifier for the selected control. This property is required. | No |
Interval | The time lapsed between executing the When Timer is Ticked event . The interval is measured in milliseconds. Using the Interval and Number of Ticks settings as per the image above, a rule action will be executed 1000 times every 30 seconds. | Yes, see Control Properties Actions for more information |
Number of Ticks | Amount of times the control's When Timer is Ticked event will execute. Using the Interval and Number of Ticks settings as per the image above, a rule action will be executed 1000 times every 30 seconds. | Yes, see Control Properties Actions for more information |
Infinite tick count | Amount of times the control's When Timer is Ticked event will execute. In this instance it will be infinite. If Tick Count Infinite setting is true, the Number of Ticks setting will be ignored. The default for this setting is false. | No |
Video | Links | Learn | Support |
No videos found for this article K2 on YouTube
No Additional links found for this article
No self-learning content for this article Try some scenarios...
No relevant support links available for this article
|