The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
MarcusH
3 years agoValued Contributor
Suppress culture code prompt for XFString
We are using XFString to present text on Cube Views in different languages. It is documented here:
https://femsadev.onestreamcloud.com/OneStreamWeb/Help/Content/Design%20and%20Reference/Presentation/Reference%20Alias%20via%20XFString.htm
I don't want to prompt the user for their language - is there a way to use the user's culture code and suppress the prompt?
Thanks
- Populate that parameter with an XFBR
- in the XFBR, use SI.Culture to look up the user's culture.
That does not prompt for the user culture so that solves my problem. For some reason it's getting the wrong culture but that is a different problem.
Thank you Jack
3 Replies
- JackLacava
OneStream Employee
- Populate that parameter with an XFBR
- in the XFBR, use SI.Culture to look up the user's culture.
- MarcusHValued Contributor
I am testing this by changing my user preferences so I need to use this to get the culture code:
Dim objUserInfo As UserInfo = BRApi.Security.Authorization.GetUser(si, si.UserName)
Dim UserCulture As String = objUserInfo.UserPreferences.Culture - MarcusHValued Contributor
That does not prompt for the user culture so that solves my problem. For some reason it's getting the wrong culture but that is a different problem.
Thank you Jack
Related Content
- 10 months ago
- 3 years ago
- 2 years ago