You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix timer documentation to use correct _z2ui5()->timer() API
The documentation previously used a non-existent client->timer_set()
method. Replace all examples with the actual custom control API
_z2ui5()->timer() which supports checkactive, delayms, finished,
and checkrepeat parameters. The one-shot example is based on the
reference sample z2ui5_cl_demo_app_073.
https://claude.ai/code/session_0165sq6V21ktTSAhKUW4r74K
Copy file name to clipboardExpand all lines: docs/development/specific/timer.md
+69-64Lines changed: 69 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,27 @@
1
1
# Timer, Auto-Refresh
2
2
3
-
abap2UI5 provides a timer functionality that triggers backend events after a specified interval. This is useful for dashboards, status monitors, or any scenario that requires periodic data updates without manual user interaction.
3
+
abap2UI5 provides a custom control `z2ui5.Timer` that triggers events after a specified delay. This is useful for dashboards, status monitors, or any scenario that requires periodic data updates without manual user interaction.
4
+
5
+
The timer is added as a view element via `_z2ui5( )->timer( ... )` and supports the following parameters:
Here the timer starts inactive. When the user clicks the button, `mv_check_timer_active` is set to `abap_true` and the timer fires once, opening a new browser tab via `_event_client`.
106
123
107
-
#### Stopping the Timer
124
+
#### Stopping a Repeating Timer
108
125
109
-
To stop an active timer, simply do not call `client->timer_set` again in the event handler. You can also add a toggle button for user control:
126
+
To stop a repeating timer, simply set the bound `checkactive` flag to `abap_false`:
0 commit comments