on 06-25-2009 10:53 AM
HI
How can i read Iview personalization language in webdynpro java netweaver 7 enviroement?
WDWebContextAdapter.getWebContextAdapter().getRequestParameter("sap-locale") is deprecated it seems.
regards
PG
Hi
i tried this as well, but there is no parameter with name 'sap-locale'.
Thanks anyways..
regards
Pranav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pranav,
Try this code to get the parameter names in your application..
Enumeration Enum=WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameterNames();
for (Enumeration e = Enum ; e.hasMoreElements() {
wdComponentAPI.getMessageManager().reportSuccess("Parameter Name::"+e.nextElement());
}
Then Try to set the parameter like this and get the value..
wdComponentAPI.getMessageManager().reportSuccess("Value"+WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("ParameterName"));
Best Wishes
Idhaya R
Hi Pranav,
Try using this code
WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("sap-locale");
Best Wishes
Idhaya R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prashant..
Thanks for the information. But I might not need properties of PCD object.
Every user sees the iview and changes the language by personalization. So the Language field is associated not only with PCD iview but also with the logged in user.
Basically We require personalized Iview details, which might be found in request object. still not sure.
regards
Pranav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Thanks, but this doesn't solve the problem.
Your solution is returning the user language, but iview language can also be personalized. I need to find iview personalization language.
regards
Pranav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pranav,
In that case why dont you try to use the PCD API to access iView properties
Check this link:
/people/daniel.wroblewski/blog/2006/08/15/pcd-ii-creating-portal-objects
You would require following jars for accessing PCD data:
com.sap.portal.usermanagementapi.jar,
com.sap.portal.pcd.glserviceapi.jar,
com.sap.portal.ivs.api_iview_api.jar
This thread contains the links for accessig the PCD content properties. Please check this as well:
I hope this solves the issue.
Thanks and Regards,
Pravesh
Hi Pranav,
Try this code:
String lang = WDClientUser.getLoggedInClientUser().getLocale().getDisplayLanguage();
If the above code doed not give you correct values please try this as well:
String lang = WDClientUser.getCurrentUser().getLocale().getDisplayLanguage();
I hope this solves the issue. Please revert back if you do not get the corerct values.
Thanks and Regards,
Pravesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.