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
Docs: recommend follow_up_action, mark action->gen obsolete
Reverse the previous obsolete designation: follow_up_action is now documented
as the recommended way to trigger a frontend action from the backend, and
action->gen is marked obsolete.
- follow_up_action.md rewritten as the recommended page; action.md rewritten
as the obsolete page pointing to it
- all cookbook code examples (browser interaction, device capabilities, model,
odata, launchpad, ...) converted from action->gen( val/t_arg ) to the
equivalent follow_up_action( |.eF('EVENT', args)| ) form
- prose references in frontend.md, focus.md, size_limit.md, custom_controls.md
and custom_js.md updated accordingly
vitepress build passes (no dead links).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015vTnxZtHiAd4tiqMvxFdgJ
Copy file name to clipboardExpand all lines: docs/cookbook/browser_interaction/focus.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ This is useful for guided data entry, barcode scanning, or any flow where the ne
25
25
26
26
#### Basic Usage
27
27
28
-
After processing an event, call `client->action->gen( )` with `cs_event-set_focus` and the id of the input to focus next. (The value bindings on the inputs are omitted here to keep the focus logic clear — see [Barcode Scanning](/cookbook/device_capabilities/barcode_scanning) for the same form with bound inputs.)
28
+
After processing an event, call `client->follow_up_action( )` with the `SET_FOCUS` frontend event and the id of the input to focus next. (The value bindings on the inputs are omitted here to keep the focus logic clear — see [Barcode Scanning](/cookbook/device_capabilities/barcode_scanning) for the same form with bound inputs.)
29
29
30
30
```abap
31
31
METHOD z2ui5_if_app~main.
@@ -45,12 +45,10 @@ METHOD z2ui5_if_app~main.
45
45
client->view_display( page->stringify( ) ).
46
46
47
47
ELSEIF client->check_on_event( `ONE_ENTER` ).
48
-
client->action->gen( val = client->cs_event-set_focus
When the app runs inside an SAP Fiori Launchpad shell, use the dedicated `set_title_launchpad` event instead. It forwards the title to the shell's `ShellUIService` rather than setting `document.title`:
0 commit comments