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/development/navigation/app_state.md
+39-2Lines changed: 39 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
outline: [2, 4]
3
3
---
4
-
# App State
4
+
# App State, Share, Bookmark
5
5
6
-
abap2UI5 saves the current app state so you can return to it later — like how standard UI5 apps manage state.
6
+
abap2UI5 saves the current app state so you can return to it later — like how standard UI5 apps manage state. This opens up several useful options, like sharing and bookmarking the current state of your app.
7
7
8
8
### Usage
9
9
Each state persists as a draft with a unique ID. Calling `client->set_app_state_active` appends this ID as a hash fragment to the URL. The resulting URL is shareable — copy it and open it in another browser window (or send it to a colleague) to restore the same app state. The hash value (`z2ui5-xapp-state=...`) is a server-side key that points to the saved draft. Drafts expire after a configurable time (default: 4 hours, adjustable via [User Exits](/advanced/extensibility/user_exits)).
@@ -47,3 +47,40 @@ ENDCLASS.
47
47
```
48
48
49
49
For a complete implementation, see sample `Z2UI5_CL_DEMO_APP_321`.
50
+
51
+
### Share
52
+
Add a share button that copies the current state to the clipboard to share with colleagues:
You can also use these URLs for bookmarking, but note that the server keeps the app state only for a limited time. The default is 4 hours. See the [draft service](https://github.com/abap2UI5/abap2UI5/blob/main/src/01/01/z2ui5_cl_core_srv_draft.clas.abap#L46) source.
Copy file name to clipboardExpand all lines: docs/get_started/next.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ outline: [2, 4]
6
6
With abap2UI5 up and running, here are a few directions to take.
7
7
8
8
#### Development
9
-
Learn how to build views, handle events, share data, and work with tables. The development guide covers what you need for everyday work. Start with the [Development guide](/development/controller/controller).
9
+
Learn how to build views, handle events, share data, and work with tables. The development guide covers what you need for everyday work. Start with the [Development guide](/development/controller/life_cycle).
10
10
11
11
#### Configuration
12
12
Getting ready for production? The configuration guides walk through security, performance tuning, Launchpad integration, and more. Start with the [Configuration guide](/configuration/setup).
0 commit comments