Knowledge Base Article

Question: Is known as a good practice to use global constants in a separate helper routine?

Question (cont)

 (e.g., for all top UD members)?  I did that often in HFM to simplify the scripting:
Public Const ALLTOP  = ".I#Top:F#FLTot:U1#BUTot:U2#AUTot:U3#PRTot:U4#None:U5#None:U6#None:U7#None:U8#None“
'All top members of cube dimensions

Answer

Using global constants to define a global intersection is not recommended. This is not something we typically do in OneStream. There may be a small performance penalty in calling these global constants from another BR or function, so it is recommended to avoid this when possible.

Source: Office Hours 2019-7-25 - Partner Enablement

 

Updated 2 years ago
Version 3.0
No CommentsBe the first to comment