Skip to content

Commit 8de16d6

Browse files
authored
Merge pull request mendix#9911 from emirmx/update-changed-by-date-docs
Update changed by date docs
2 parents e5da9a7 + 60dd661 commit 8de16d6

4 files changed

Lines changed: 15 additions & 7 deletions

File tree

  • content/en/docs
    • refguide10/modeling/domain-model/entities
    • refguide8/modeling/domain-model/entities
    • refguide9/modeling/domain-model/entities
    • refguide/modeling/domain-model/entities

content/en/docs/refguide/modeling/domain-model/entities/_index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Data grids do not directly display this date.
130130

131131
#### Store 'changedDate'
132132

133-
This property defines whether the entity contains the system attribute 'changedDate'. This is an attribute of type **Date and time** that stores the most recent date and time when the object was changed.
133+
This property defines whether the entity contains the system attribute 'changedDate'. This is an attribute of type **Date and time** that stores the date and time when the changed object was committed.
134134

135135
| Option | Description |
136136
| --- | --- |
@@ -145,10 +145,6 @@ Data grids do not directly display this date.
145145
The 'changedDate' attribute is updated when the changed object is committed.
146146
{{% /alert %}}
147147

148-
{{% alert color="warning" %}}
149-
The `changedDate` value is not updated if you update the object directly in Java using calls which resolve to use the [`com.mendix.systemwideinterfaces.core.IMendixObject.setValue​(IContext context, java.lang.String memberName, java.lang.Object value)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/systemwideinterfaces/core/IMendixObject.html#setValue(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,java.lang.Object)) method (for example, `Entity.setValue(IContext, String)`). If you need `changedDate` to be updated when using Java, use the [`com.mendix.core.Core.change​(IContext context, IMendixObject object, java.util.Map<java.lang.String,​java.lang.String> changes)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/core/Core.html#change(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IMendixObject,java.util.Map)) method.
150-
{{% /alert %}}
151-
152148
#### Store 'owner' {#store-owner}
153149

154150
This property defines whether the entity has the system association 'owner'. This is an association to the system entity 'User' that (initially) stores a reference to the user that created the object. This association is automatically set by the server upon creating an object.

content/en/docs/refguide10/modeling/domain-model/entities/_index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Data grids do not directly display this date.
130130

131131
#### Store 'changedDate'
132132

133-
This property defines whether the entity contains the system attribute 'changedDate'. This is an attribute of type **Date and time** that stores the most recent date and time when the object was changed.
133+
This property defines whether the entity contains the system attribute 'changedDate'. This is an attribute of type **Date and time** that stores the most recent date and time when the object was changed (Mendix .x and below), or when the changed object is committed (Mendix 10.20 and above).
134134

135135
| Option | Description |
136136
| --- | --- |
@@ -148,7 +148,7 @@ In Mendix 10.19.x and below, the 'changedDate' attribute is updated whenever a v
148148
{{% /alert %}}
149149

150150
{{% alert color="warning" %}}
151-
The `changedDate` value is not updated if you update the object directly in Java using calls which resolve to use the [`com.mendix.systemwideinterfaces.core.IMendixObject.setValue​(IContext context, java.lang.String memberName, java.lang.Object value)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/systemwideinterfaces/core/IMendixObject.html#setValue(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,java.lang.Object)) method (for example, `Entity.setValue(IContext, String)`). If you need `changedDate` to be updated when using Java, use the [`com.mendix.core.Core.change​(IContext context, IMendixObject object, java.util.Map<java.lang.String,​java.lang.String> changes)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/core/Core.html#change(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IMendixObject,java.util.Map)) method.
151+
In Mendix 10.19.x and below, the `changedDate` value is not updated if you update the object directly in Java using calls which resolve to use the [`com.mendix.systemwideinterfaces.core.IMendixObject.setValue​(IContext context, java.lang.String memberName, java.lang.Object value)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/systemwideinterfaces/core/IMendixObject.html#setValue(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,java.lang.Object)) method (for example, `Entity.setValue(IContext, String)`). If you need `changedDate` to be updated when using Java, use the [`com.mendix.core.Core.change​(IContext context, IMendixObject object, java.util.Map<java.lang.String,​java.lang.String> changes)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/core/Core.html#change(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IMendixObject,java.util.Map)) method.
152152
{{% /alert %}}
153153

154154
#### Store 'owner' {#store-owner}
@@ -183,6 +183,10 @@ In Mendix 10.20 and above, the 'changedBy' property is updated when a changed ob
183183
In Mendix 10.19.x and below, the 'changedBy' property is updated whenever a value is set for a member (attribute or association).
184184
{{% /alert %}}
185185

186+
{{% alert color="warning" %}}
187+
In Mendix 10.19.x and below the `changedBy` value is not updated if you update the object directly in Java using calls which resolve to use the [`com.mendix.systemwideinterfaces.core.IMendixObject.setValue​(IContext context, java.lang.String memberName, java.lang.Object value)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/systemwideinterfaces/core/IMendixObject.html#setValue(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,java.lang.Object)) method (for example, `Entity.setValue(IContext, String)`). If you need `changedDate` to be updated when using Java, use the [`com.mendix.core.Core.change​(IContext context, IMendixObject object, java.util.Map<java.lang.String,​java.lang.String> changes)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/core/Core.html#change(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IMendixObject,java.util.Map)) method.
188+
{{% /alert %}}
189+
186190
### Access Rules Section {#access-rules}
187191

188192
#### Access Rules

content/en/docs/refguide8/modeling/domain-model/entities/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ The 'changedDate' property is only updated on real changes. Simply changing and
141141
We do not support displaying this system member of the System.User entity or its specializations in a data grid directly.
142142
{{% /alert %}}
143143

144+
{{% alert color="warning" %}}
145+
The `changedDate` value is not updated if you update the object directly in Java using calls which resolve to use the [`com.mendix.systemwideinterfaces.core.IMendixObject.setValue​(IContext context, java.lang.String memberName, java.lang.Object value)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/systemwideinterfaces/core/IMendixObject.html#setValue(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,java.lang.Object)) method (for example, `Entity.setValue(IContext, String)`). If you need `changedDate` to be updated when using Java, use the [`com.mendix.core.Core.change​(IContext context, IMendixObject object, java.util.Map<java.lang.String,​java.lang.String> changes)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/core/Core.html#change(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IMendixObject,java.util.Map)) method.
146+
{{% /alert %}}
147+
144148
#### Store 'owner'
145149

146150
This property defines whether the entity has the system association 'owner'. This is an association to the system entity 'User' that (initially) stores a reference to the user that created the object. This association is automatically set by the server upon creating an object.

content/en/docs/refguide9/modeling/domain-model/entities/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ The 'changedDate' property is updated when a value is set. [In Mendix 9.5.0 and
155155
We do not support displaying this system member of the System.User entity or its specializations in a data grid directly.
156156
{{% /alert %}}
157157

158+
{{% alert color="warning" %}}
159+
The `changedDate` value is not updated if you update the object directly in Java using calls which resolve to use the [`com.mendix.systemwideinterfaces.core.IMendixObject.setValue​(IContext context, java.lang.String memberName, java.lang.Object value)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/systemwideinterfaces/core/IMendixObject.html#setValue(com.mendix.systemwideinterfaces.core.IContext,java.lang.String,java.lang.Object)) method (for example, `Entity.setValue(IContext, String)`). If you need `changedDate` to be updated when using Java, use the [`com.mendix.core.Core.change​(IContext context, IMendixObject object, java.util.Map<java.lang.String,​java.lang.String> changes)`](https://apidocs.rnd.mendix.com/10/runtime/com/mendix/core/Core.html#change(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IMendixObject,java.util.Map)) method.
160+
{{% /alert %}}
161+
158162
#### Store 'owner' {#store-owner}
159163

160164
This property defines whether the entity has the system association 'owner'. This is an association to the system entity 'User' that (initially) stores a reference to the user that created the object. This association is automatically set by the server upon creating an object.

0 commit comments

Comments
 (0)