Data Provider Variable statement

Official Content
This documentation is valid for:

It is one of the three main components of the Data Provider output-based declarative language.

Sometimes it is necessary to make internal calculations that do not necessarily have to go into the Output itself. Variables are used in this case, in a Data Provider Group statement.

Syntax

<variableStatement>::= <&var> '=' <Formula>

View Syntax conventions

Where: 

var
     Is the name of the variable.

Formula
      Is the same as in Data Provider Element statement.

Samples

Customers
{
   &TotalCustomers = 0
   Customer
   {
      CustomerId = CustomerId
      CustomerName = CustomerName
      &TotalCustomers = &TotalCustomers + 1
   }
   Summary
   {
      Total = &TotalCustomers 
   }
}