--How-to get the current username
1 post
• Page 1 of 1
--How-to get the current username
This article is outdated - please use our new system at
https://doc.sibvisions.com
If you want to know the current user-name in your application, simply call:
- Code: Select all
getApplication().getUserName();
The method returns the same as:
- Code: Select all
getApplication().getConnection().getUserName();
If getApplication() return type is an IApplication, use this:
- Code: Select all
((ProjX)getApplication()).getUserName();
Above code is client-side code. If you need the user-name on server-side, simply call:
- Code: Select all
SessionContext.getCurrentSession().getUserName();
-
Development@SIB - Posts: 325
- Joined: Mon Sep 28, 2009 1:54 pm
1 post
• Page 1 of 1