How to get the userID from a javascript function

Hi :smiley: ,

how can i get the userid of the person connected to the webi session in a javascript function.

In fact, i publish an HTML file with Javascript functions into the webi repository and i’d like to retrieve the USERID of the person to make an external process.

I’m sur that it’s possible but i’don’t have any documentation on SDK…

Thanks.


Fry (BOB member since 2005-06-22)

Are you using Siteminder or some other SSO solution?

In that case Browser / Web server are aware of current username and Javascipt might be able to query the browser for username.


shamit (BOB member since 2004-07-01)

:cry: unfortunately not


Fry (BOB member since 2005-06-22)

Then the solution will involve JSP as well.

  1. You will have to write a JSP that queries username from WebI
  2. A javascript that calls this JSP thru http (Similar to AJAX)

You can copy code from any Infoview JSP (you will need code for obtaining a user session and querying username from session)


shamit (BOB member since 2004-07-01)

hii…

Could u please tell in detail how to exactly retreive the username from infoview…
Suppose a person has logged in… i need to pass those details to an asp page…

Thanks and Regards
Nisha


nisha_s_25 (BOB member since 2005-06-30)