Suppress culture code prompt for XFString

MarcusH
Contributor III

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/...

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

2 ACCEPTED SOLUTIONS

JackLacava
Community Manager
Community Manager
  1. Populate that parameter with an XFBR
  2. in the XFBR, use SI.Culture to look up the user's culture.

View solution in original post

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

View solution in original post

3 REPLIES 3

JackLacava
Community Manager
Community Manager
  1. Populate that parameter with an XFBR
  2. 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

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

Please sign in! MarcusH