Promotic
WikipediaLinkedInYoutubeTwitterFacebook

WndEditUsers - method of object Pm

Description:
Displays the window for editing the users.
Syntax:
WndEditUsers([sParams As String])
Calling:
Pm.WndEditUsers
Parameters:
sParams[optional] (String) Text list of additional parameters that define the display mode of the window. Entries with assigned value are separated by a semicolon, for example "users:L_TOM,L_ALAN;groups:^$ADMIN;add:$ANY;delete:$ANY;edit:$ANY;".
"users:sss;" (optional) - A list of users (user identificators) separated by comma ','. Can be used for defining the users, that will be displayed in the input window. If not defined, all users will be displayed.
users:user1,user2,...,userN; - If the list begins with a user, then it is a list of all users, that will be displayed in the window.
users:^user1,user2,...,userN; - If the list begins with the '^' character, then it is a list of users, that will not be displayed in the window.
"groups:sss;" (optional) - A list of user groups (user identificators) separated by comma ','. Can be used for defining the user groups, that will be displayed in the input window. If not defined, all user groups will be displayed.
groups:group1,group2,...,groupN; - If the list begins with a user group, then it is a list of all user groups, that will be displayed in the window.
groups:^group1,group2,...,groupN; - If the list begins with the '^' character, then it is a list of user groups, that will not be displayed in the window.
"add:sss;" (optional) - Allows to enable/disable ading of new local/network users.
add:$ANY; - (default) Adding local and network users is allowed.
add:$ANY_LOCAL; - Adding local users is allowed.
add:$ANY_NET; - Adding network users is allowed.
add:; - No users can be added.
"edit:sss;" (optional) - Allows to enable/disable editing of the existing local/network users.
edit:$ANY; - (default) Local and network users can be edited.
edit:; - No users can be edited.
"delete:sss;" (optional) - Allows to enable/disable deleting of the existing local/network users (default $ANY).
delete:$ANY; - Local and network users can be deleted.
delete:; - No users can be deleted.
Note:
Before the display itself of this users edit box, it is verified if the current registered local user has sufficient rights for editing the users. The authorization is made by evaluating the permission PmRoot > Permissions > EditUsers.

The window is a modal window with the Users page.

The running application doesn't write changes into the file Application.pra that's why the data of the users created in the running application are stored into the file Application.ini.

 
This method is not functional for Web Panels. This method is functional for local panels with configured integration of panel and local application: client - LIMITED access from scripts to the PmPanel object and Pm object (JavaScript local panel).
Example1:
Displaying the user editation window with L_ADMIN and L_MANAGER users supressed. When assigning the users into groups supress the $ADMIN group.
Pm.WndEditUsers "users:^L_ADMIN,L_MANAGER;groups:^$ADMIN;"
Example2:
Displaying the user editation window with ADD and DELETE user options supressed. Editing the existing users is alloved.
Pm.WndEditUsers "add:;delete:;"
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
- WndEditUsers
 
 
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice