How can I set a global variable in my reports?
You can now set global variables. These variables will then be available in all script contexts that execute after. Setting a global variable is as simple as:
Globals are used with the same pattern as objective-c properties. When you call "setMyVariable:", it creates a storage pointer called "myVariable". You can subsequently access that variable by calling theVar:= globals myVariable.
Globals are accessible from tokens as well and user inputs are automatically stored in the globals area.