afterLogin()
After successful login displays the required panel.
Synopsis
void afterLogin(string user, string password, string newLocale, int
closeModules, [string panel=""], [string module="WinCC_OA"], [dyn_string
dollar=makeDynString()]);
Parameter
Parameter | Description |
---|---|
user | Name of the user |
password | User's password |
newLocale | Selected user language - for example, "de_AT.iso88591" |
closeModules |
Determines if the module should be closed during the login process. The default value is 0: <0: panel calling the function is closed 0: opens a new module 1: calling module is closed 3: calling module is closed |
iConfNum | Id of the used multi screen configuration. The default value is 1. The parameter is used for the panel topology. |
panel | Specifies which panel is opened after the login. The default value is an empty string "". |
module | Name of the module in which the panel is opened. The default value is WinCC_OA. |
dollar | Dollar parameters that are passed to the panel. |
Return Value
None (void)
Description
After login this function opens a project panel of your choice.
Example
In order to open the user interface after the login, call the function as follows:
main(mapping event)
{
afterLogin("Guest","","de_DE.utf8");
}
In order to open a panel of your choice after the login, call the function as follows. Here the "about.pnl" is opened in the module "TEST_Module".
main(mapping event)
{
afterLogin("Guest","","de_DE.utf8", 0,1,"about.pnl", "TEST_Module");
}
Assignment
User administration
Availability
CTRL