cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the current online user of browsing some view?

Former Member
0 Kudos

as title as said.i need to know the current online users whom are on bowsing some view after logined it..

(web dynpro project+EP)

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member182372
Active Contributor
0 Kudos

Is it kind of joke? Absolutely same question 3 times within less than 2 days.

Do you know about "Forum search" functionality?

Former Member
0 Kudos

hi,Maksim Rashchynski .

i am sorry for that.

but i still cann't solved it by myself.

in fact.i 've got all users logined in EP.but that's not i wanna.

i need to got <i>some users</i> <b>who are browsing one view i specified</b>

thanks!

former_member182372
Active Contributor
0 Kudos

I don`t think it is possible without additional development efforts. You can register users in wdDoInit and unregister in wdDoExit of view but don`t think it will work correct with inter-views navigation.

Former Member
0 Kudos

winogal,

do you mean same WD View or same portal iView???

VS

Former Member
0 Kudos

hi,Valery Silaev

u know .it best to get both of them.

but if u can get one of the two.i think that is very helpful to me!

Former Member
0 Kudos

Hi

Former Member
0 Kudos

Hi Wingoal,

In portal Means

String strUserid=new String();

IWDClientUser wdUser = WDClientUser.getCurrentUser();

IUser user = wdUser.getSAPUser();

if (user!=null)

{

IUserAccount[] acct = user.getUserAccounts();

if (acct[0]!=null)

{

loginuser=acct[0].getLogonUid();

strUserid += acct[0].getLogonUid();

}

}

First Add,

Add WD_RUNTIME/com.sap.security/lib/com.sap.security.api.jar to your project`s java build path

Regards,

Saravanan K

Former Member
0 Kudos

hi,Saravanan K

i can got the all online-users after users logined in EP.

but i don't know how to got the users who are browsing someone view.

<b>in fact i just wanna to send some Message to these who are opened some views(keep opening beftore closed it).if this,although someone logined in EP.he still cann't receive message because he is not browsing the view!</b>

furthermore:

[color=red]<b>loginuser=acct[0].getLogonUid();</b>[/color]

//which type is for [color=green]<b>loginuser</b>[/color]?

Former Member
0 Kudos

Hi,wingoal :

Try this :

try{

IWDClientUser user = WDClientUser.getCurrentUser();

}

catch ...

String firstName = user.getFirstName();

String secondName = user.getLastName();

......