Skip to content

Commit 4dc5c5c

Browse files
committed
Reorganize Browser Feature sidebar
Move Clipboard from More to Browser Feature, add a new Title page covering the static cs_config title and the runtime document.title follow-up, rename File Handling to Upload, Download, and nest the PDF page alongside XLSX under it. https://claude.ai/code/session_01JWgqHJwjqZjV7MgXDyYwvf
1 parent 020a1c1 commit 4dc5c5c

3 files changed

Lines changed: 49 additions & 5 deletions

File tree

docs/.vitepress/config.mjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,13 @@ export default defineConfig({
221221
},
222222
{ text: "Timer", link: "/development/specific/timer" },
223223
{ text: "Soft Keyboard", link: "/development/specific/soft_keyboard" },
224+
{ text: "Clipboard", link: "/development/specific/clipboard" },
225+
{ text: "Title", link: "/development/specific/title" },
224226
{
225-
text: "File Handling",
227+
text: "Upload, Download",
226228
link: "/development/specific/files",
227229
items: [
230+
{ text: "PDF", link: "/development/specific/pdf" },
228231
{ text: "XLSX", link: "/development/specific/xlsx" },
229232
],
230233
},
@@ -253,11 +256,9 @@ export default defineConfig({
253256
},
254257
{
255258
text: "More",
256-
link: "/development/specific/pdf",
259+
link: "/development/specific/email",
257260
collapsed: true,
258261
items: [
259-
{ text: "PDF", link: "/development/specific/pdf" },
260-
{ text: "Clipboard", link: "/development/specific/clipboard" },
261262
{ text: "E-Mail", link: "/development/specific/email" },
262263
{ text: "Value Help", link: "/development/specific/value_help" },
263264
{ text: "Demo Output", link: "/development/specific/demo_output" },

docs/development/specific/files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
outline: [2, 4]
33
---
4-
# File Handling
4+
# Upload, Download
55

66
abap2UI5 handles file uploads and downloads by sending base64-encoded data over two-way binding.
77

docs/development/specific/title.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
outline: [2, 4]
3+
---
4+
# Title
5+
6+
Set the text the browser shows in the tab and window title bar. abap2UI5 offers a static option via the user-exit configuration, and a dynamic option via a follow-up JavaScript action.
7+
8+
#### Static — via User Exit
9+
10+
The initial tab title comes from `cs_config-title` in the HTTP GET user exit. Implement [`Z2UI5_IF_EXIT`](../../advanced/extensibility/user_exits.md) and set the field once on page load:
11+
12+
```abap
13+
METHOD z2ui5_if_exit~set_config_http_get.
14+
15+
cs_config-title = `my title`.
16+
17+
ENDMETHOD.
18+
```
19+
20+
#### Dynamic — at Runtime
21+
22+
To change the title after the app is running — for example, to reflect the current record — push a follow-up action that updates `document.title` directly:
23+
24+
```abap
25+
METHOD z2ui5_if_app~main.
26+
27+
CASE abap_true.
28+
29+
WHEN client->check_on_init( ).
30+
client->view_display( z2ui5_cl_xml_view=>factory(
31+
)->page(
32+
)->button(
33+
text = `change title`
34+
press = client->_event( `RENAME` )
35+
)->stringify( ) ).
36+
37+
WHEN client->check_on_event( `RENAME` ).
38+
client->follow_up_action( `document.title = "Invoice 4711";` ).
39+
40+
ENDCASE.
41+
42+
ENDMETHOD.
43+
```

0 commit comments

Comments
 (0)