Skip to content

Commit 0f71bc5

Browse files
committed
add app type support section to OL doc
1 parent 3fda663 commit 0f71bc5

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

content/en/docs/refguide/runtime/optimistic-locking.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,30 @@ If a conflict is detected—meaning someone else has modified the data since you
1717

1818
You can decide whether optimistic locking is enabled or disabled for your app.
1919

20-
## Behavior of App with Optimistic Locking Disabled
20+
### Support Status by App Type
21+
22+
Optimistic locking is supported in the following types of Mendix apps:
23+
24+
| App Type | Support Status | Lowest Supported Version |
25+
| --- | --- | --- |
26+
| Online | Supported | [Studio Pro 11.5](/releasenotes/studio-pro/11.5/) |
27+
| Offline | Supported | [Studio Pro 11.11](/releasenotes/studio-pro/11.11/) |
28+
29+
Additional information on optimistic locking behavior:
30+
* In online Mendix apps, ___
31+
* In offline Mendix apps, offline changes are synchronized to the server without being blocked by optimistic locking version checks
32+
33+
## App Behavior: Optimistic Locking Disabled
2134

2235
When two modifications are saved, they are applied in the order of processing. Only changed attributes are written to the database. This means that if the two commits change different attributes or associations of an object, the changes are not overwritten.
2336

2437
For example, if one user commits changes for `AttributeA` and `AttributeB` and another user commits changes for `AttributeB` and `AttributeC` for the same object, then both `AttributeA` and `AttributeC` are committed according to both users' changes. `AttributeB` is committed based on whichever change was committed later.
2538

26-
## Behavior of App with Optimistic Locking Enabled
39+
## App Behavior: Optimistic Locking Enabled
2740

2841
The Mendix runtime implements optimistic locking by tracking the version of all objects using the attribute `MxObjectVersion` with type `Long`. Although the `MxObjectVersion` attribute is not write-protected, setting this value does not result in it being saved to the database. Its current value is compared with the value for the same object in the database.
2942

30-
### How to Enable and Use Optimistic Locking
43+
### Enabling and Using Optimistic Locking
3144

3245
You can enable optimistic locking for your Mendix application in the `Runtime` tab in the **App Settings** dialog:
3346

0 commit comments

Comments
 (0)