Skip to main content
amccollum
OneStream Employee
OneStream Employee
June 14, 2022
Solved

Fact or Fiction? I can use global variables

  • June 14, 2022
  • 6 replies
  • 0 views

Statement:

I can use global variables.

Question Credit:  Peter Fugere

Is this statement fact or fiction? Comment your best guess below! Answers will be revealed in one week.

agoralewski_0-1655214473895.jpeg

 

* This question is applicable to Platform 7.3.0 and may not be relevant to future releases

 

    Best answer by amccollum

    FACT!

    You were all correct -- well done!!!

    6 replies

    Newcomer
    June 14, 2022

    FACT! I think. Through the BRApi dashboards functions.

    Newcomer
    June 14, 2022

    Fact. Every business rule has a global object where you can store global variables.

    Mike_Sabourin
    Contributor
    June 14, 2022

    Tim is correct, but you must enable the global functions under properties

    Michel_Sabourin_0-1655243962889.png

     

     

    OneStream Employee
    July 8, 2022

    This setting allows you to reference the business rule in a member formula. The globals object is always enabled.

    Newcomer
    June 15, 2022

    Fact. Can be done in the following way:

    Dim MyVariable As Integer = 5 (Can be done with other datatypes such as "String")

    Globals.SetObject("DesiredGlobalVariableNameHere", MyVariable)

    Globals.GetObject("DesiredGlobalVariableNameHere")

    OneStream Employee
    June 16, 2022

    Fact... I think...

    Change the settings under Variables?

    #newbie

    amccollum
    OneStream Employee
    amccollumOneStream EmployeeAuthorAnswer
    OneStream Employee
    June 21, 2022

    FACT!

    You were all correct -- well done!!!