cancel
Showing results for 
Search instead for 
Did you mean: 

Fact or Fiction? I can use global variables

agoralewski
Contributor

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

 

 

 

1 ACCEPTED SOLUTION

agoralewski
Contributor

FACT!

You were all correct -- well done!!!

View solution in original post

7 REPLIES 7

MarkMatson
New Contributor III

FACT! I think. Through the BRApi dashboards functions.

-- br >markmatson@gmail.com / +61420 847 628 / +6422 506 9467 / https://www.linkedin.com/in/mark-matson/

TimVierhout
New Contributor II

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

Michel_Sabourin
New Contributor III

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

Michel_Sabourin_0-1655243962889.png

 

 

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

t_kaplanis
New Contributor II

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")

Sara_EFR
New Contributor

Fact... I think...

Change the settings under Variables?

#newbie

agoralewski
Contributor

FACT!

You were all correct -- well done!!!