Global variables can be used in various tools of Foresight Analytics Platform: creation of report headers and footers, setting parameter values or generation of expressions. Global variable values can be set from the object navigator or using the Fore language (for details see description of the ISharedParams interface). Global variable values are the same for all repository users.
NOTE. On using a mandatory access control mechanism in repository, only administrator and users included in the administration group will be able to create and modify global variables.
To work with global variables, use the Global Variables tab in the Parameters dialog box.
To open the Parameters dialog box
The Global Variables tab contains a table with a list of global variables and its parameters.
By default, the list always contains system global variables that cannot be removed or edited:
METABASE_SERVER. The variable value corresponds to the server pseudonym where repository is stored.
METABASE_DATABASE. The variable value corresponds to the database identifier (repository). If Microsoft SQL Server 2008 DBMS type is specified in repository settings, and custom scheme is used in database, the variable value looks as follows: <database>.<database scheme>.
METABASE_DATABASE_ONLY. The variable value corresponds to the database identifier.
METABASE_SCHEMA_ONLY. The variable value corresponds to the identifier of custom scheme in database. The variable is displayed if repository settings contain the Microsoft SQL Server 2008 DBMS type.
METABASE_FILEGROUP. The variable value corresponds to the custom file group of the MSSQL server database. The variable is displayed if the MSSQL DBMS type is determined in repository settings.
Along with system global variables there is a set of additional global variables, which creation can modify in some way mechanism of Foresight Analytics Platform work. The following table provides a list of these variables and their description:
Identifier | Value type | Description |
AUTORUN_OBJECT_AS_MAIN | Any | This global variable can be used, if autorun object interface. On entering to the repository, the autorun object window is the main one. The other windows can also open from application code (application forms or system windows, for example, object navigator), but on closing the autorun object window, other windows also close. If application logic requires closing only autorun object window, create the AUTORUN_OBJECT_AS_MAIN global variable and set it to 0. |
See also:
Setting Up Regular Report Headers and Footers | Setting Up Regular Report Title | Setting Up Express Report Headers and Footers | Setting Up Express Report Title