Skip to content

Commit ffc5c89

Browse files
authored
Merge pull request #108 from abap2UI5/claude/practical-faraday-tJMBd
Add set_title_launchpad event for SAP Fiori Launchpad shell
2 parents f95caf9 + f755eaf commit ffc5c89

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

docs/cookbook/browser_interaction/title.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,12 @@ METHOD z2ui5_if_app~main.
3434

3535
#### Launchpad
3636

37-
Inside an SAP Fiori Launchpad shell the title is forwarded to the `ShellUIService`; standalone the framework falls back to `document.title`.
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`:
38+
39+
```abap
40+
client->action(
41+
val = client->cs_event-set_title_launchpad
42+
t_arg = VALUE #( ( `Invoice 4711` ) ) ).
43+
```
44+
45+
Use `set_title` for the browser tab/window title (standalone) and `set_title_launchpad` for the launchpad shell title.

docs/cookbook/event_navigation/frontend.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ The following frontend events are available:
2727
download_b64_file TYPE string VALUE `DOWNLOAD_B64_FILE`,
2828
set_size_limit TYPE string VALUE `SET_SIZE_LIMIT`,
2929
set_title TYPE string VALUE `SET_TITLE`,
30+
set_title_launchpad TYPE string VALUE `SET_TITLE_LAUNCHPAD`,
3031
set_focus TYPE string VALUE `SET_FOCUS`,
3132
scroll_to TYPE string VALUE `SCROLL_TO`,
3233
scroll_into_view TYPE string VALUE `SCROLL_INTO_VIEW`,

docs/cookbook/expert_more/custom_controls.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The table below lists custom controls that are no longer necessary and the built
1515
| Old Custom Control Purpose | New Built-in Action | Documentation |
1616
| -------------------------- | ---------------------------- | -------------------------------------------------------------------------- |
1717
| Set the browser tab title | `cs_event-set_title` | [Title](/cookbook/browser_interaction/title) |
18+
| Set the launchpad title | `cs_event-set_title_launchpad` | [Title](/cookbook/browser_interaction/title) |
1819
| Move input focus | `cs_event-set_focus` | [Focus](/cookbook/browser_interaction/focus) |
1920
| Scroll to a position | `cs_event-scroll_to` | [Scrolling](/cookbook/browser_interaction/scrolling) |
2021
| Scroll an element into view| `cs_event-scroll_into_view` | [Scrolling](/cookbook/browser_interaction/scrolling) |

0 commit comments

Comments
 (0)