Managed Reporting Internal Variables

There are several variables related to Managed Reporting processing that you can pass to the Server. This may be useful for controlling processing flow or for display purposes in the report output. You can do this by configuring the <SET> variable (pass) commands in the Administration Console. Useful variables include:

Example: Using Managed Reporting Internal Variables

  1. Sign in as an administrator.
  2. In the Administration Console, on the Configuration tab, click Custom Settings, then type the following code to the end of the file:
    <SET> IBIMR_folder (pass)
    <SET> IBIMR_fullpath (pass)
    <SET> IBIMR_user (pass)
    <SET> IBIMR_domain (pass)
    <SET> MR_FULL_FEXNAME (pass)
    <SET> MR_ITEM_HANDLE (pass)

    Note: Do not write over the existing lines in Custom Settings. The file must begin with the <VER> line.

  3. Click Save.
  4. Sign in to Managed Reporting and use the text editor to create a standard report called test2 in the default workspace.
  5. Enter the following code and save the report:
    -TYPE IBIMR_folder is &IBIMR_folder
    -TYPE IBIMR_fullpath is &IBIMR_fullpath
    -TYPE IBIMR_user is &IBIMR_user
    -TYPE IBIMR_domain is &IBIMR_domain
    -TYPE MR_FULL_FEXNAME is &MR_FULL_FEXNAME
    -TYPE MR_ITEM_HANDLE is &MR_ITEM_HANDLE
  6. Right-click the saved report and select Properties from the shortcut menu, then deselect the Prompt for Parameters option.
  7. Change the description to Test 2 Description.
  8. Save your changes and run the report.

The following output appears:

IBIMR_folder is Sales
IBIMR_fullpath is IBFS:/WFC/Repository/Retail/Sales/variables.fex
IBIMR_user is admin
IBIMR_domain is Retail/
MR_FULL_FEXNAME is variablesTitle
MR_ITEM_HANDLE is variables 

When the report is run from the text editor, the following output appears:

IBIMR_folder is Sales
IBIMR_fullpath is IBFS:/WFC/Repository/Retail/Sales/*
IBIMR_user is admin 
IBIMR_domain is Retail/
MR_FULL_FEXNAME is
MR_ITEM_HANDLE is ADHOCRQ