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
Copy file name to clipboardExpand all lines: docs/cookbook/browser_interaction/focus.md
+4-4Lines changed: 4 additions & 4 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 `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.)
29
29
30
30
```abap
31
31
METHOD z2ui5_if_app~main.
@@ -45,11 +45,11 @@ 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
48
+
client->follow_up_action( val = client->cs_event-set_focus
49
49
t_arg = VALUE #( ( `id2` ) ) ).
50
50
51
51
ELSEIF client->check_on_event( `TWO_ENTER` ).
52
-
client->action->gen( val = client->cs_event-set_focus
52
+
client->follow_up_action( val = client->cs_event-set_focus
53
53
t_arg = VALUE #( ( `id1` ) ) ).
54
54
55
55
ENDIF.
@@ -64,7 +64,7 @@ After the user presses Enter in `id1`, the backend fires `set_focus` for `id2` a
64
64
To position the caret inside the field or pre-select a range, pass the start and end offsets as additional arguments:
65
65
66
66
```abap
67
-
client->action->gen( val = client->cs_event-set_focus
67
+
client->follow_up_action( val = client->cs_event-set_focus
Copy file name to clipboardExpand all lines: docs/cookbook/browser_interaction/title.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ METHOD z2ui5_if_app~main.
23
23
)->stringify( ) ).
24
24
25
25
WHEN client->check_on_event( `RENAME` ).
26
-
client->action->gen(
26
+
client->follow_up_action(
27
27
val = client->cs_event-set_title
28
28
t_arg = VALUE #( ( `Invoice 4711` ) ) ).
29
29
@@ -37,7 +37,7 @@ METHOD z2ui5_if_app~main.
37
37
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