<< Click to Display Table of Contents > User level |
![]() ![]() ![]() |
The following parameters can be found in SAMLight at Settings → System → User Level.
|
---|
☒ Set ☒ Get |
|||
---|---|---|---|
DLL Function |
int CCI_Return = ScSetStringValue(int Value_Type, string Parameter) int CCI_Return = ScGetStringValue(int Value_Type, ref string Parameter) |
||
ASCII Function |
int CCI_Return = ScCciSetStringValue(int Value_Type, string Parameter) string Parameter = ScCciGetStringValue(int Value_Type) |
||
Description |
Get current user and login an other user. |
||
Value_Type |
Type: int |
ID: |
|
Location: ScComSAMLightClientCtrlValueTypes |
|||
scComSAMLightClientCtrlStringValueTypeCurrentUserName |
33 |
||
Get the current logged in user name. |
|||
scComSAMLightClientCtrlStringValueTypeLoginUserAndPassword |
38 |
||
Login an other user with user name and password. |
|||
Parameter |
Type: string |
Unit: none |
|
•Get CurrentUserName: user name •Set LoginUserAndPassword: user name and password separated by a horizontal tab ("\t", ASCII 0x08). |
|||
CCI_Return |
Type: int |
||
CCI return number, see error list. |
|||
Notes |
•User level has to activated before, otherwise the returned string is empty. |
||
C# Example: Login as Supervisor with password abc123:
int CCI_Return = cci.ScSetStringValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeLoginUserAndPassword, "Supervisor" + "\t" + "abc123" ); |
|||
C# Example: Get the name of the current user:
string User_Name = ""; int CCI_Return = cci.ScGetStringValue( ( int )ScComSAMLightClientCtrlValueTypes.scComSAMLightClientCtrlStringValueTypeCurrentUserName, ref User_Name ); |
Table 68: User Account
☒ Set ☐ Get |
||
---|---|---|
DLL Function |
int CCI_Return = ScExecCommand(int Cmd_ID) |
|
ASCII Function |
int CCI_Return = ScCciExecCommand(int Cmd_ID) |
|
Description |
Log out the current user in SAMLight. |
|
Cmd_ID |
Type: int |
|
Location: ScComSAMLightClientCtrlExecCommandConstants |
||
scComSAMLightClientCtrlExecCommandLogout |
47 |
|
CCI_Return |
Type: int |
|
CCI return number, see error list. |
||
Notes |
- |
|
C# Example: Log out the current user:
int CCI_Return = cci.ScExecCommand( ( int )ScComSAMLightClientCtrlExecCommandConstants.scComSAMLightClientCtrlExecCommandLogout ); |
Table 69: User Logout