Skip to main content
amccollum
Employee - Guide
Employee - Guide
Jun 14, 2022 1:48 PM UTC
Solved

Fact or Fiction? I can use global variables

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

 

    amccollum
    amccollumAnswer
    Employee - Guide
    Jun 21, 2022 4:05 PM UTC

    FACT!

    You were all correct -- well done!!!

    7 replies

    Newcomer
    Jun 14, 2022 6:02 PM UTC

    FACT! I think. Through the BRApi dashboards functions.

    Newcomer
    Jun 14, 2022 8:30 PM UTC

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

    Mike_Sabourin
    Contributor
    Jun 14, 2022 9:59 PM UTC

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

    Michel_Sabourin_0-1655243962889.png

     

     

    ChristianW
    Employee - Advisor
    Employee - Advisor
    Jul 8, 2022 4:24 PM UTC

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

    Member
    Jun 15, 2022 7:38 PM UTC

    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
    Jun 16, 2022 10:45 AM UTC

    Fact... I think...

    Change the settings under Variables?

    #newbie

    amccollum
    Employee - Guide
    amccollumEmployee - GuideAuthorAnswer
    Employee - Guide
    Jun 21, 2022 4:05 PM UTC

    FACT!

    You were all correct -- well done!!!