Documentation

(applications)

How-to get the current username

If you want to know the current user-name in your application, simply call:

getApplication().getUserName();

The method returns the same as:

getApplication().getConnection().getUserName();


If getApplication() return type is an IApplication, use this:

((ProjX)getApplication()).getUserName();


Above code is client-side code. If you need the user-name on server-side, simply call:

SessionContext.getCurrentSession().getUserName();
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information