Example of administrative user management
The example allows the runtime user management and is created from the Preconfiguration "Runtime users management"
application objects preconfigurations.
- This example is functional for the Web.
- Located in the tree of Pma objects: /Examples/PreCfg/AdminUsers.
- In order to run this example it is necessary that the user is logged in as ADMIN (no password).
In the AdminUsers
main panel, there is a table containing the user list and function buttons, that can be used in order to add, delete, edit or change password of the user. The panel contains methods that are called from the panel and execute the desired actions. The user values and settings are saved into the users.csv
file in the Data
folder of the application by means of the SaveUsers
Adding users into the running application is solved in the InitUsers
designer's method. This method is called after the "SaveUsers
" method, but it must also be called right after the application launch (in the onAppStartEnd
This kind of user management cannot display or edit users created in the development environment (saved into *.pra