VisuUserMgmt.EditUser
(METH)
METHOD EditUser : VUM_ReturnValues
It edit the user data. It works with both legacy and runtime-based user management Only users of group ADMIN can edit other user. Following actions (eEditType) are possible: VUM_MODIFY, VUM_REMOVE, VUM_ADD and VUM_INSERT. (VUM_ADD and VUM_INSERT do the same for runtime-based usermanagement.) If everything is correct the function returns VUM_ReturnValues.ERR_OK. see VUM_ReturnValues (ENUM) where possible error reasons are described.
- InOut:
Scope
Name
Type
Comment
Return
EditUser
VUM_ReturnValues
Input
pClient
POINTER TO BYTE
A pointer to the visualization client - POINTER TO VisuElems.VisuStructClientData
pvumUserNew
POINTER TO VUM_User3
The user data with new data. Needed for VUM_MODIFY, VUM_REMOVE, VUM_ADD and VUM_INSERT.
pvumUserOld
POINTER TO VUM_User3
The user data with old data, only needed for VUM_MODIFY.
udiIndex
UDINT
Only for legacy Index to use for user list (for VUM_INSERT, VUM_MODIFY and VUM_REMOVE)
eEditType
VUM_EditType
Activity to do