VisuUserMgmt.ChangeUser (METH) ¶ METHOD ChangeUser : BOOL InOut: Scope Name Type Comment Return ChangeUser BOOL Input dwUserDB DWORD The ChangeUser action is always done on a copy DB file pvumUser POINTER TO VUM_User udiIndex UDINT eEditType VUM_EditType
VisuUserMgmt.ChangeUserPassword (METH) ¶ METHOD ChangeUserPassword : BOOL InOut: Scope Name Type Comment Return ChangeUserPassword BOOL Input dwUserDB DWORD The ChangeUser action is always done on a copy DB file wstUserName WSTRING wstNewPassword WSTRING wstOldPassword WSTRING
VisuUserMgmt.CheckLoginIntern (METH) ¶ METHOD CheckLoginIntern : UDINT It checks the login to see if the credentials are OK. The Login check is always done on the main user DB file. The result is the user group ID or an INVALID_USERGROUP_ID if the check fails. InOut: Scope Name Type Return CheckLoginIntern UDINT Input wstUserName WSTRING wstPassword WSTRING Output wstFullName WSTRING dwUserGroupID DWORD
VisuUserMgmt.CheckLoginWithGroupIDIntern (METH) ¶ METHOD CheckLoginWithGroupIDIntern : UDINT The Login check is always done on the main user DB file. The result is the user group ID or an INVALID_USERGROUP_ID if the check fails. InOut: Scope Name Type Return CheckLoginWithGroupIDIntern UDINT Input wstUserName WSTRING wstPassword WSTRING dwUserGroupID DWORD Output wstFullName WSTRING
VisuUserMgmt.FB_Init (METH) ¶ METHOD FB_Init : BOOL FB_Init is always available implicitly and it is used primarily for initialization. The return value is not evaluated. For a specific influence, you can also declare the methods explicitly and provide additional code there with the standard initialization code. You can evaluate the return value. InOut: Scope Name Type Comment Return FB_Init BOOL Input bInitRetains BOOL TRUE: the retain variables are initialized (reset warm / reset cold) bInCopyCode BOOL TRUE: the instance will be copied to the copy code afterward (online change)
VisuUserMgmt.FillLanguageGroupNames (METH) ¶ METHOD FillLanguageGroupNames : BOOL InOut: Scope Name Type Return FillLanguageGroupNames BOOL
VisuUserMgmt.FindUserByType (METH) ¶ METHOD FindUserByType : VUM_ReturnValues InOut: Scope Name Type Comment Return FindUserByType VUM_ReturnValues Input vumUserIn VUM_User The user to search for eEditType VUM_EditType The user edit type Output vumUser VUM_User The found user data udiIndex UDINT The index of the user in the user list
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 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
IVisuUserMgmt methods ¶ SetProvider (Method)
VisuUserMgmt.SetProvider (METH) ¶ METHOD SetProvider : BOOL InOut: Scope Name Type Return SetProvider BOOL Input itfVisuUserMgmtProvider IVisuUserMgmtProvider