on 08-12-2010 6:34 AM
Dear All,
I have a req where I need to capture to session language for displaying data in an WD application....
If the session lang is Arabic.. I need to send that u201CARu201D as a parameter to RFC to fetch the data...
If the session lang is English... I need to send the u201CENu201D as a parameter to RFC to fetch the data...
Let me know how I can achieve this.
Regards,
Vijay.
Hi,
use the following code to get the language of the session:
java.util.Locale locale = WDClientUser.getCurrentUser().getLocale();
This will return the locale for the session. pass this locale string to the RFC.
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.
Hi,
Yes, the above code will give u the language of the Browser of the Language of the user who logs into the portal. Assume the Browser language is english and the language of the user in User Administration is Arabic, then this code will give arabic over english.
Please give some more details on what r u trying to achieve in ur application
Regards,
Poojith MV
Dear Poojith,
The following is my senario:
Users log in to the Portal where default language is English. The iViews Master language is English.
There is a button in the TLN which switches the Portal display language into Arabic. The text direction is from right to left..The iViews are replaced by a new set of iViews whose master language is Arabic. This is achieved by customizing the TLN and DLN par files.
I need to fetch the transactional data from RFC based on the language the Portal is currently in.
Here I'm trying to send the session lang as input to RFC to fetch the data in appropriate language.
Let me know how I can capture the session language.
Let me know if there is better way to achieve the same.
Regards,
Vijay.
User | Count |
---|---|
88 | |
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.