SUBSTITUTE VARIABLES IN A REPORT SCRIPT/ VARIABLES DE SUSTITUCIÓN EN UN REPORT SCRIPT

English (Español a continuación)

In a Report Scripts you can use substitution variables to select members.

  • These variables can be defined at the server, application or database level.

Changing the value assigned to the substitution variable, its effect is reflected in the Report Script.

Let’s see an example: we define the &Markets variable and in the Report Script we use the command:

  • <IDESCENDANTS &Markets

We can change the value of this variable. For example:

  • &Markets = Spain

So the Report Script command would be equivalent to:

  • <IDESCENDANTS Spain

Or for example:

  • &Markets = Germany

So the Report Script command would be equivalent to:

  • <IDESCENDANTS Germany

Español

En el Report Scripts se pueden utilizar variables de sustitución para seleccionar los miembros.

  • Estas variables se pueden definir a nivel de servidor, aplicación o base de datos.

Cambiando el valor asignado a la variable de sustitución su efecto queda recogido en el Report Script.

Veamos un ejemplo: definimos la variable &Mercados y en el Report Script utilizamos el comando:

  • <IDESCENDANTS &Mercados

A esta variable le podemos ir cambiando el valor. Por ejemplo:

  • &Mercados = España

Con lo que el comando del Report Script equivaldría a:

  • <IDESCENDANTS España

O por ejemplo:

  • &Mercados = Alemania

Con lo que el comando del Report Script equivaldría a:

  • <IDESCENDANTS Alemania
Anuncio publicitario