Skip to content

CHANGE_SYSUSER_SETTINGS ​

This component call changes the settings of an ADOxx system user.

Syntax ​

leo-grammar
CC "UserMgt" CHANGE_SYSUSER_SETTINGS User
									[ library:strValue ] [ infotext:strValue ]
									[ bpmtk:boolValue ] [ admtk:boolValue ]
									[ sub-admin:boolValue] .

User :		UserName | UserID .
UserName :	user:strValue domain:strValue [ ignore-case ].
UserID :	userid:intValue .

# --> RESULT ecode:intValue .

Parameters ​

  • user (strValue) - the display name of the system user whose settings should be changed. If a user with such a name exists, its settings will be changed anyway.
  • userid (intValue) - the ID of the system user
  • domain (strValue) - the domain name of the system user.
  • ignore-case (modifier) - if given, case is ignored concerning the user display name. This means that it does not matter if the user name is given in upper or lower case (or mixed).
  • library (strValue) - the name of the application library the user is related to.
  • infotext (strValue) - the user specific text.
  • bpmtk (boolValue) - has the user access to the ADOxx Modelling Toolkit? 0 = no, 1 = yes.
  • admtk (boolValue) - has the user access to the ADOxx Development Toolkit? 0 = no, 1 = yes.
  • sub-admin (boolValue) - is the system user a Sub-Administrator? 0 = no, 1 = yes.

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.

Details ​

The user is either specified by ID or by giving the display name and the domain name of the user. This command is available within both the ADOxx Development Toolkit and the ADOxx Modelling Toolkit. In the Modelling Toolkit only users that also have access to the Development Toolkit may call this command!

Examples ​

asc
CC "UserMgt" CHANGE_SYSUSER_SETTINGS
      user:"Superman" domain:"SuperDomain"
      library:"ADOxx-Standard-Anwendungsbibliothek 4.0"
      infotext:"New text" bpmtk:1 admtk:0
IF (ecode = 0) {
    CC "AdoScript" INFOBOX "Usersettings changed successfully!"
} ELSE {
    CC "AdoScript" ERRORBOX "Could not apply the usersettings."
}

See Also ​

Versions and Changes ​

Available since ADOxx 1.3