Printing Information from Matrices
It is possible to print information from matrices in the report. A matrix is the grid that appears in many registers. For example, an Invoice contains a matrix listing the Invoice Items. We will now illustrate printing information from a matrix by listing Invoice Items in our Customer list report. Follow these steps:
- Return to the Report Definition record and go to the 'Data' card.
- Click on the line in the report display area marked "Register: Invoices..." to select the Invoice register.
- Click the [Matrix] button. Because you clicked on the Invoice register line in step 2, the 'Matrix Rows' dialogue box already contains the correct defaults when it opens:
- Register/Block
- Paste Special
Registers in Hansa
- Specify the "mother" register here: the register to which the matrix belongs. In the example, the Invoice Items matrix belongs to the Invoice register, so that register is entered here.
- Mother Record
- Enter the name of the variable containing the current record (the record currently being printed) in the mother register.
- Variable Name
- Enter a name for the variable that will contain the current matrix record (in the example, the current Invoice Item).
- Level
- The matrix should be on a level one below that of the mother register.
- Click [OK] to save the matrix. A "Register Matrix:" line is added to the report display area, indented to show that it's on the third level: