on 04-26-2006 4:39 PM
Hi Gurus,
Can someone tell me some method of determining the language in which a user has logged in to the enterprise portal through the WebDynpro code. Are there any APIs already existing for this? Where can I find these APIs if they exist?
I would appreciate any code snippets on this issue.
Best Regards,
Rajeev
Hi Rajeev,
Try out following lines of code.
IWDClientUser clientUser = WDClientUser.getCurrentUser();
IUser user = clientUser.getSAPUser();
clientUser.get..();
user.get...();
Use this following details to retrive all the information about the current portal user.
Hope it helps,
Regards,
Nagarajan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajeev,
Locale loc = WDClientUser.getLoggedInClientUser().getLocale()
This will have the language in which the portal user logs in.U can also change the portal language and then redeploy to see the effective changes.
Also Print this to verify:
wdComponentAPI.getMessageManager().reportWarning("User language"+loc);
Use this loc object to retrive datas from the Resource bundle.
Hope it helps,
Regards,
Nagarajan.
Hi,
Following are the apis for portal
https://media.sdn.sap.com/javadocs/NW04/SPS15/ep/index.html
http://help.sap.com/saphelp_nw04/helpdata/en/fd/ea5c42da4de92ce10000000a1550b0/frameset.htm
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
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.