OptivaServerUICultureName

You can use this function for Optiva Workflows.

Purpose

This function allows access to the Server property: System.Threading.Thread.CurrentThread.CurrentUICulture.Name.

The Server property identifies the user’s culture for the current Optiva session.

Syntax

Dim UILang as String = OptivaServerUICultureName()

Arguments

There are no arguments.

Example

To display the message text for FormulaCalcFailed in the local browser language, use this syntax:

Dim sLanguage as String = Context.SessionInfo.Language
Dim msg as String
Dim rtn as Int32 = GetMessageText("FORMULACALCFAILED", msg, sLanguage)
Messagelist("Language", sLanguage, "Message Code", msg)

If Context.SessionInfo.Language is not returning the resulting language that you want, an alternative is to use OptivaServerUICultureName. Here is an example:

Dim sLanguage as String = OptivaServerUICultureName
Dim msg as String
Dim rtn as Int32 = GetMessageText("FORMULACALCFAILED", msg, sLanguage)
Messagelist("Language", sLanguage, "Message Code", msg)