on 12-23-2007 4:25 PM
Hi,
I have the following problem in WD:
I have the ume id of a user. (let it be "userUmeId")
I need to get the IUser instance.
I tried the following:
IWDClientUser user = WDClientUser.getClientUser("userUmeId");
IUser iUser = user.getSAPUser();
I am getting the current user instead of getting the IUser of "userImeId:.
Could it be that WDClientUser.getClientUser() should get another string? (I know it returns the current user in case it fails to find a matching user for the given string).
How then do I get the desired IUser?
Regards,
Oren.
Hi Buddy,
just try this
IWDClientUser user= null;
user = WDClientUser.getCurrentUser();
String name= user.getSAPUser().getUid();
this method is depricated but works..
still you can try
user.getSAPUser().getUniqueID();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Oren,
Try something like this:
IUserFactory userFactory = UMFactory.getUserFactory();
IUser user = userFactory.getUserByLogonID("serUmeId");
Regards,
Omri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think you should specify the client user ID differently. It should be something like: "USER.PRIVATE_DATASOURCE.un:<userUmeId>".
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.