Audit Fields
Changes to a DataElement can be tracked by adding auditing functionality. These options track when and by whom a data elementData Element (DataElement). A fundamental data concept or entity within an application's domain, acting as an anthropomorphic translation of a real-life object or concept. is edited.
Create/modify timestamps
The options audit.create.timestamp and audit.modify.timestamp can be used to track creation and modification
timestamps of instances of a data elementData Element (DataElement). A fundamental data concept or entity within an application's domain, acting as an anthropomorphic translation of a real-life object or concept.. These are set in the data layerLayerLogical separation of functionality within a single system/application, focused on code organization. right before saving the instance to the
database.
FieldA FieldFieldA property of a DataElement expanded to a database column and user interface input element. of type Date or Timestamp marked with this option will have the current timestamp stored in it when an
instance of the element is created.
This option is implicitly added to a fieldFieldA property of a DataElement expanded to a database column and user interface input element. with name EnteredAt if it is not explicitly defined on any other fieldFieldA property of a DataElement expanded to a database column and user interface input element. in the data elementData Element (DataElement). A fundamental data concept or entity within an application's domain, acting as an anthropomorphic translation of a real-life object or concept..
<options>
<audit.create.timestamp/>
</options>
FieldA fieldFieldA property of a DataElement expanded to a database column and user interface input element. of type Date or Timestamp marked with this option will have the current timestamp stored in it when an
instance of the element is modified. The timestamp is also stored when the instance is created as we consider this to
also be the first modification event in the scope of this functionality.
This option is implicitly added to a fieldFieldA property of a DataElement expanded to a database column and user interface input element. with name LastModifiedAt if it is not explicitly defined on any other fieldFieldA property of a DataElement expanded to a database column and user interface input element. in the data elementData Element (DataElement). A fundamental data concept or entity within an application's domain, acting as an anthropomorphic translation of a real-life object or concept..
<options>
<audit.modify.timestamp/>
</options>
Create/modify author
The options audit.create.author and audit.modify.author can be used to track who creates and modifies instances of a
data elementData Element (DataElement). A fundamental data concept or entity within an application's domain, acting as an anthropomorphic translation of a real-life object or concept.. This is achieved using references to the Account::User element based on the contents of the active
UserContext context group. These are set in the data layerLayerLogical separation of functionality within a single system/application, focused on code organization. right before saving the instance to the database. If no
UserContext is present or no valid user data is stored within, the relevant fieldFieldA property of a DataElement expanded to a database column and user interface input element. will be set to an empty value.
It may be possible to use this for links to elements other than Account::User, as the implementation supports Ln02
links as well as uses a generic DataRef object constructed out of the information in UserContext, but this is not
a recommended use-case!
FieldA LinkField of type Ln01 to Account::User marked with this option will have a reference to the user in the
UserContext stored in it when an instance of the element is created.
This option is implicitly added to a fieldFieldA property of a DataElement expanded to a database column and user interface input element. with name enteredBy if it is not explicitly defined on any other fieldFieldA property of a DataElement expanded to a database column and user interface input element. in
the data elementData Element (DataElement). A fundamental data concept or entity within an application's domain, acting as an anthropomorphic translation of a real-life object or concept..
<options>
<audit.create.author/>
</options>
FieldA link fieldFieldA property of a DataElement expanded to a database column and user interface input element. of type Ln01 to Account::User marked with this option will have a reference to the user in the
UserContext stored in it when an instance of the element is modified. The reference is also stored when the instance
is created as we consider this to also be the first modification event in the scope of this functionality.
This option is implicitly added to a fieldFieldA property of a DataElement expanded to a database column and user interface input element. with name lastModifiedBy if it is not explicitly defined on any other fieldFieldA property of a DataElement expanded to a database column and user interface input element.
in the data elementData Element (DataElement). A fundamental data concept or entity within an application's domain, acting as an anthropomorphic translation of a real-life object or concept..
<options>
<audit.modify.author/>
</options>
fieldsFieldA property of a DataElement expanded to a database column and user interface input element. called enteredBy or lastModifiedBy should be Ln01 link fieldsFieldA property of a DataElement expanded to a database column and user interface input element. to Account::User.
They will be automatically updated to the user that created (enteredAt) or last modified (lastModifiedAt) an instance.