We are under construction!

You may experience downtime, errors or visual oddities, but we anticipate all will be resolved by the end of the day.

Forum Discussion

MarcusH's avatar
MarcusH
Contributor III
2 years ago

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

    1. Populate that parameter with an XFBR
    2. in the XFBR, use SI.Culture to look up the user's culture.
  • MarcusH's avatar
    MarcusH
    2 years ago

    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

  • JackLacava's avatar
    JackLacava
    Honored Contributor
    1. Populate that parameter with an XFBR
    2. in the XFBR, use SI.Culture to look up the user's culture.
    • MarcusH's avatar
      MarcusH
      Contributor III

      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

    • MarcusH's avatar
      MarcusH
      Contributor III

      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