cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Portal User ids in the webdynpro applications

Former Member
0 Kudos

Hi Gurus

Can any one please send the code for Getting Portal User id in Webdynpro application.

and can we see the SAP USer Ids in the Webdynpro applications?

Regards

DS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Using UMEfactory u can do that...

1. create one input field,

2. create one attribute called Uid

3. assign Uid attribute to the input field

4. type the following code in Doinit() method

String uid = wdContext.currentContextElement().getUid();

try {

IUser user = UMFactory.getUserFactory().

getUserByLogonID(uid);

String userName = user.getDisplayName();

} catch (UMException ex) {

e.toString();

}*/

5. after that go to Portal create one iview assign to particular user. then u get into the user details...

thats it

Regards,

P.Manivannan

Former Member
0 Kudos

Hi there

Definitely take a look at this thread:

xxxxxxxxxxxx

Regards

Allan

Edited by: Armin Reichert on Apr 26, 2008 6:47 PM

Former Member
0 Kudos

Hi All/Mani,

I found different types of code...some one mentined code like that

IWDClientUser user=WDClientUser.getCurrentUSer();

and some mention like

IUser user = UMFactory.getUserFactory().

String userName = user.getDisplayName();

String email = user.getEmail();

what is the differnece b/w those codes...

Regards

DS.

Former Member
0 Kudos

hi,

please check this thread.

You can retrieve your system information this way.

[;

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

look at this thread:

Regards,

Markus