TM1 Function for TI, ViewAttrSL

Returns a string from a cube view’s attribute for a given locale.

What is the ViewAttrSL function?

ViewAttrSL returns a string from a cube view’s attribute for a given locale.

Where can the ViewAttrSL function be used?

TurboIntegrator

What is the syntax for ViewAttrSL?

ViewAttrSL(CubeName, ViewName, AttributeName, [LangLocaleCode]);​

CubeName = Parent cube of the view to have the string attribute value retrieved.​
ViewName = Name of the view to have the string attribute value retrieved.​
AttributeName = Name of the attribute to retrieve the value.​
LangLocaleCode = Specifies the language code of the attribute to be retrieved (ISO 639-1).​
If blank or ignored, TM1 will retrieve the user’s current locale attribute value. 

A demonstration on how to use ViewAttrSL

Use ViewAttrSL to retrieve the Description attribute from the Employee cube’s default view from the locale, pt-BR.