Skip to content

Commit 0e9c2db

Browse files
authored
update lock section
1 parent b52d90a commit 0e9c2db

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

docs/.vitepress/config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ export default defineConfig({
159159
text: "Geolocation, Maps",
160160
link: "/development/specific/geolocation",
161161
},
162-
{
163-
text: "Stateful Sessions",
164-
link: "/development/specific/stateful",
165-
},
166162
{ text: "URL", link: "/development/specific/url" },
167163
{ text: "Formatter", link: "/development/specific/formatter" },
168164
],
@@ -203,6 +199,10 @@ export default defineConfig({
203199
{ text: "Downporting", link: "/advanced/downporting" },
204200
{ text: "Renaming", link: "/advanced/renaming" },
205201
{ text: "Builder", link: "/advanced/builds" },
202+
{
203+
text: "Stateful Sessions",
204+
link: "/development/specific/stateful",
205+
},
206206
{ text: "Local", link: "/advanced/local" },
207207
{ text: "RFC Connector", link: "/advanced/rfc" },
208208
{ text: "FE Integration", link: "/advanced/fiori" },

docs/advanced/stateful.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Statefulness, Locks
2+
3+
By default, abap2UI5 runs stateless like any other UI5 freestyle app, meaning only REST calls are made to the ABAP backend.
4+
5+
## Stateful Sessions
6+
7+
In private and on-premise scenarios, abap2UI5 can also be used in stateful mode. Check out `Z2UI5_CL_DEMO_APP_135` and `Z2UI5_CL_DEMO_APP_137` for examples.
8+
9+
## Locks
10+
11+
In certain scenarios, locking of business objects may be needed. Stateful sessions (described above) are one way to achieve this.
12+
13+
## Infinite Transactions
14+
15+
Another option is to create an infinite session in the backend that holds locks while the UI5 app still communicates statelessly. Check out the documentation [here](https://help.sap.com/docs/ABAP_PLATFORM_NEW/6568469cf5a1460a8d85c58b83d21ec2/47db6c68e4282972e10000000a42189b.html?locale=en-US) and see the issues [here](https://github.com/abap2UI5/abap2UI5/issues/2003) and [here](https://github.com/abap2UI5/abap2UI5/issues/1971) for more information.

docs/development/specific/stateful.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)