on ‎2006 Aug 03 2:09 PM
Hi people,
Inside my CAF Core Project i have created entities and defined some fields as language dependent. I am using this CAF project as DC for other webdynpro component.
Now I test my WD application. How can I realize during the runtime, which language is actualy the current one for the CAF component? I want to print out this information for example as a Caption on the screen to be able identify missing language dependent entries and create them within CAF framework later on?
Thanks in advance
Kamil
Request clarification before answering.
Hi Kamil,
In our project we retrieve the locale the following way:
<i>userName = sessionContext.getCallerPrincipal().getName();
IUser user = UMFactory.getUserFactory().getUserByUniqueName(userName);
Locale currLocale = user.getLocale();</i>
The <i>userName</i> is automatically retrieved by the generated code at the beginning of every method, so actually you can use the <i>CAF_user</i> generated variable.
Regards,
Robert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The language comes from the UserFactory. It's the language for the user defined in UME you log in the Portal with.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.