on 01-09-2006 5:22 PM
Hey
Im trying to get the user from the Portal.
Im using following code:
IWDClientUser user = WDClientUser.getCurrentUser();
String User = user.getFirstName() + " " + user.getLastName();
the problem is that this code only works on one client. If i try another client with the same user, it doesnt return anything. What could be wrong? Am I missing some jar files?
Hi Kristoffer,
Your code is not enough to get Portal user.I am not also understanding your problem with 2 different clients.What you mean by 2 clients.Is that 2 different pc's with development environment or just 2 different browsers ?.
Anyway you can try this code to get the portal user and probably you have to change ep5 user things.From ep6 getting ep5 user is depriciated but it will still work.
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
IUser sapUser = wdClientUser.getSAPUser();
IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.