VAR
Defines variables. Variables can be used to dynamically control script execution. You can store different types of values in variables. The syntax is:
Syntax
VAR[Variable name][Variable value]
Parameters
Variable name
The name of the variable. Use descriptive names.
Variable value
The value of the variable. The values can be of any type.
To reference a variable use the following syntax:
%VAR%
How to use a variable
1  
2  
In Name, type the variable name, as shown in Figure 5-56. In Value, type the variable value. In this example, the variable contains the name of a table.
Figure 5-56  
3  
4  
5  
[%TABLE%]
Figure 5-57  
6  
7  
[SalesData].[%TABLE%].[QUANTITYINSTOCK]*[SalesData].[%TABLE%].[MSRP]
8  
9  
Choose Run. The log, as shown in Figure 5-58, displays that the TABLE variable is replaced by its value, CarInventory.
Figure 5-58  
 

Additional Links:

Copyright Actuate Corporation 2013 BIRT Analytics 4.2