TurboIntegrator User Variables
Posted: Mon Oct 27, 2008 4:06 pm
Don't know how i've missed this over the last 4 years, maybe its the typically vague help files but hell its useful to know!
TurboIntegrator User Variables;
This type of variable is associated with an individual TM1 user, not with any particular process or chore. User variables can be manipulated from within any TurboIntegrator process or chore while the user with which the variable is associated is logged on to the TM1 server.
User variables are declared in a TurboIntegrator process using one of the following two functions:
NumericSessionVariable('VariableName'); Use this function to declare a numeric user variable.
StringSessionVariable('VariableName'); Use this function to define a string user variable.
Example:
TI-1 prolog;
NumericSessionVariable('zSte_Tes_Var');
TI-1 epilog;
zSte_Tes_Var = 616 + 616;
TI-2 prolog;
asciioutput ( '\\tm1data\out.txt' , NumberToString ( zste_tes_var ) );
This means you can pass data from ANY TI to ANY OTHER TI using the TM1 equlivalent of Excel's Global Variables. It doesn't have to be a prompt and the value is persistant for as long as the user that ran the TI declaring the variable is logged in.
There are also "TurboIntegrator global variables";
Global variables can be used in two ways:
· Global variables can be declared within a process that is part of a given chore. Once declared, the global variables are available to all other processes that are part of the chore. The variables persist while the chore is executing, and are destroyed when the chore exits.
· Global variables can be declared in one process and be made available to any subsequent processes called by the ExecuteProcess( ) function. These sub-processes must use the same global variable declaration statements (described below) to access the global variables.
Global variables are declared in a TurboIntegrator process using one of the following two functions:
NumericGlobalVariable('VariableName'); Use this function to declare a numeric global variable.
StringGlobalVariable('VariableName'); Use this function to define a string global variable.
Same usage i expect, just can't believe it took me so long to find it!!
TurboIntegrator User Variables;
This type of variable is associated with an individual TM1 user, not with any particular process or chore. User variables can be manipulated from within any TurboIntegrator process or chore while the user with which the variable is associated is logged on to the TM1 server.
User variables are declared in a TurboIntegrator process using one of the following two functions:
NumericSessionVariable('VariableName'); Use this function to declare a numeric user variable.
StringSessionVariable('VariableName'); Use this function to define a string user variable.
Example:
TI-1 prolog;
NumericSessionVariable('zSte_Tes_Var');
TI-1 epilog;
zSte_Tes_Var = 616 + 616;
TI-2 prolog;
asciioutput ( '\\tm1data\out.txt' , NumberToString ( zste_tes_var ) );
This means you can pass data from ANY TI to ANY OTHER TI using the TM1 equlivalent of Excel's Global Variables. It doesn't have to be a prompt and the value is persistant for as long as the user that ran the TI declaring the variable is logged in.
There are also "TurboIntegrator global variables";
Global variables can be used in two ways:
· Global variables can be declared within a process that is part of a given chore. Once declared, the global variables are available to all other processes that are part of the chore. The variables persist while the chore is executing, and are destroyed when the chore exits.
· Global variables can be declared in one process and be made available to any subsequent processes called by the ExecuteProcess( ) function. These sub-processes must use the same global variable declaration statements (described below) to access the global variables.
Global variables are declared in a TurboIntegrator process using one of the following two functions:
NumericGlobalVariable('VariableName'); Use this function to declare a numeric global variable.
StringGlobalVariable('VariableName'); Use this function to define a string global variable.
Same usage i expect, just can't believe it took me so long to find it!!