cancel
Showing results for 
Search instead for 
Did you mean: 

Enterprise portal language through WD

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Nagarajan,

I think by using this code I will get the locale language instead of Enterprise portal langauge.

Doesn't locale language represents the language selected in the browser

Regards,

Rajeev

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos