Counter entity
Find information about the Counter entity in Amlib OpenReports.
Borrower memos by barcode
The Counter can be used for any Entity to include a Count on the Group Field. In this sample, it will count the Number of Memos for each Barcode giving the name of the Borrower and the Number of Memos
- Select New from the buttons of the Report Designer
- The Edit Report Window will display
- Enter a Report Title in the Report Title section. This can display at the top of the report. For the sample we can give a Title of “Borrower Memos”
- Enter a Group if the Reports for example Borrower
- Enter a Sub Group for example Memos Count
- Choose Report Type from the Drop-down options (Table is default):
- Table – set out in rows and columns (select for the sample)
- Select Orientation
- Landscape (select for the sample)
- Leave Show sql
- Show details: For this sample Report we will leave as the Defaults
- All: To display all the details
- Show Sub totals if a calculation based on Groups is required (Default is unticked). For the sample tick this
- Show total if a Total calculation of the Sub totals is required (Default is unticked). For the sample tick this
- Tick Private For our sample leave this unticked.
- Show header on first page. For our sample leave this ticked
- Show header on next pages. For our sample leave this unticked
Display Fields
- Highlight the Counter Entity from the Entities / Data Fields
- Drag and drop Group Details Count into the Display Field Column
- Highlight the Borrower Entity from the Entities / Data Fields
- In this sample we have Borrower Full Name - Given, Surname
Group
- Highlight the Borrower Entity from the Entities/Data fields column
- Drag and drop Borrower Barcode to the Group fields column which will base the Count on Memos per Barcode
Filter
- Select the Borrower Entity
- Drag and drop Borrower Memo Date to the Filter
- Select Greater than from the Drop-down Options
- Enter the required date from the Calendar Order by
It is useful to have an Order sequence if required
Preview
1. Select Preview to view the Report
Save
Once the Report is successful, save so it can be used again in the Viewer or Designer