Skip to content
Snippets Groups Projects
Commit 2a9f65a1 authored by Tom Lutzenberger's avatar Tom Lutzenberger
Browse files

#1058862: Entity Dokumentation

parent a4b4a485
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.14" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.14">
<name>Usersettings_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/Usersettings_entity/documentation.adoc</documentation>
<title>Settings</title>
<grantDelete v="false" />
<afterUiInit>%aditoprj%/entity/Usersettings_entity/afterUiInit.js</afterUiInit>
......
= Usersettings_entity
== Overview
=== Definition
Entity to read, write and handle user settings.
=== Purpose
Enables users to edit their own settings and change their password.
=== Particularities
* The settings are stored in the table `ASYS_USERS` as key-value pairs and therefore direct access via DB container is not possible
* The read/write logic is implemented in the `UserSettings_lib` and will be accessed in the jDito Container
* The field `UID` exists to prevent errors but is not actually needed
== Related entities
-
== Best Practice
-
== FAQ
[qanda]
How can I add more fields to the settings view?::
You need to do the following:
* Add a new field to this entity. The name must be the same as in the users data model/the settings table
* Add the field to `UsersettingsEdit_view`
* Add the name of the field to the arrays in `UserSettings_lib`. Most of them are located in the user objects `params` property => `paramSettings`
Which setting fields are possible?::
You can find out if you have a look at the return value of `tools.getCurrentUser()`
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment