Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
[ Interactive viewer ] get user name in the launched report
Migrateduser
Hello,<br />
<br />
I m looking for a method that I can use to get the user that is connected to the interactive viewer in my report. This will enable me to limit access to some data or not regarding to the user profile.<br />
<br />
For exemple, my user is connected as the "user1", <br />
<br />
How to retrieve "user1" in my report?<br />
<br />
I saw things like that but I m not sure that it is really what I need ( and it doesn't work for now anyway, I only get "null" )<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>function getLoggedInUsername() {
var myLoginName = null;
var request = reportContext.getHttpServletRequest();
if (request!=null) {
if (request.getRemoteUser()!=null) {
myLoginName = request.getRemoteUser();
}
}
return myLoginName;
}</pre>
<br />
Thanks in advance.<br />
<br />
Regards,
Find more posts tagged with
Comments
There are no comments yet