newdevs:code:report-view
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
newdevs:code:report-view [2023/07/27 12:14] – tmccanna | newdevs:code:report-view [2023/07/27 12:44] (current) – [Making This a Core Report Source] tmccanna | ||
---|---|---|---|
Line 9: | Line 9: | ||
This option adds the SQL directly to the Fieldmapper. This is the easiest approach to code and the reporter (and most other parts of Evergreen) will be able to make use of it, but it does have limitations. For example, it will not be available to a direct database query. Also, other fieldmapper classes cannot link to this class as they would be able to with option 2. | This option adds the SQL directly to the Fieldmapper. This is the easiest approach to code and the reporter (and most other parts of Evergreen) will be able to make use of it, but it does have limitations. For example, it will not be available to a direct database query. Also, other fieldmapper classes cannot link to this class as they would be able to with option 2. | ||
- | 1. Scroll to the bottom of the fieldmapper. You're going to insert your new class below the last closing </ | + | Tasks: |
+ | * Create new fieldmapper class (this will include | ||
- | **NOTE:** The Fieldmapper cares about indentation. Make sure to follow the indentation examples from other classes. | + | Example Code: https:// |
- | **Class id** -- | ||
- | **Controller** -- You have options for what this should be, and you can combine several. | + | ===== Option 2: Create a Database View ===== |
- | * open-ils.cstore | + | |
- | * open-ils.reporter-store | + | |
- | * open-ils.pcrud | + | |
- | **oils_object: | + | This option creates a view on the database side which is then referenced by the fieldmapper |
- | **oils_persist: | + | Tasks: |
+ | | ||
+ | | ||
+ | * Create or modify the appropriate schema file under Open-ILS/ | ||
+ | | ||
+ | | ||
- | **oils_persist:virtual** | + | Example Code: https:// |
+ | |||
+ | ===== Making This a Core Report Source ===== | ||
+ | |||
+ | If unspecified, | ||
+ | |||
+ | < | ||
+ | |||
+ | For example: | ||
+ | < | ||
+ | oils_obj: | ||
+ | reporter: | ||
+ | |||
+ | ===== More Information ===== | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
- | **reporter: |
newdevs/code/report-view.1690474446.txt.gz · Last modified: 2023/07/27 12:14 by tmccanna