on 05-20-2010 10:00 AM
hi experts,
in my wd application i need to fetch the id of current user , i have added two dc's as dependenies
1. tc/je/security/api
2.tc/aii/base/offline/facade
i tried using th following code
IWDClientUser clientUser = WDClientUser.getLoggedInClientUser();
IUser user = clientUser.getSAPUser();
String emailId = user.getEmail();
it gave me syntax error as it is not recognizing the "IUSER".
Please help me in this regard.
thanks,
vishavdeep singh lohan
Hi Vishavdeep,
Have you added com.sap.security.api.jar in your DC project >> Properties >> Java Build Path. Please check it and add accordingly.
if already added, then try to sync sources and sync used DC from Inactive DC view.
Hope it will helps you.
Regards
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this code:
IWDClientUser wdcu = WDClientUser.getCurrentUser();
StringTokenizer stkUserName = new StringTokenizer(wdcu.getClientUserID(),":");
while (stkUserName.hasMoreElements())
{
strUserID = stkUserName.nextToken();
}
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
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.