GRN - Access any nominal centre details (Reports & Settings Report Generator function)
From Catalyst
(Redirected from REF:rprgfgrn)
Syntax
$GRN{centre, expression}
Description
In general, changes the Nominal Centre being reported on.
Parameters
- centre
- A text parameter that can be omitted.
- Nominal Centre code to use (see below).
- expression
- A text or numeric parameter that can be omitted.
- Variable or formula to evaluate (see below).
Returns
A text or numeric (depending on the parameters) value. This function may be used in three ways.
- All parameters are supplied.
$GRN{A43,N02} |
- The result of the given expression using the details of the nominal centre supplied is returned. For the example above, (using the variable A43), the name of the payment Nominal Centre of the current account would be returned.
- No expression is supplied.
$GRN{A43} |
- Changes the nominal centre being reported on; i.e. all "N" variables (and other variables which use the nominal centre being reported on), in the remainder of the current block will use the details from the nominal centre supplied. If used in a Range screen then this will affect the whole report. If no expression is supplied, the actual result of the function will be numeric - "1" if the centre exists or "0" if otherwise.
- No parameters are supplied.
$GRN{} |
- The function may be used in this way in a block after using the function as in method 2, to change the centre being reported on back to the previous value.