Changing the User Currently Logged In Run-Time |
In a run-time USoft application, you can change the user that is currently logged in into another user by executing the following statement: SELECT RulesEngine.SetUser('<username>', '<password>', '') The result of successfully executing this statement is that the Rules Engine applies the authorization rules for the new user, and that the menu is refreshed. If the new user is member of a different user group, the After Usergroup Changed event takes place. In all cases, after executing the SetUser statement, the After SetUser event takes place. In the Windows Designer, you can specify additional actions to be performed when these two application interface events occur. For more information, refer to the Definer Help topic: "Connecting Non-Database Users To a USoft Application". |