Download the PHP package mesd/jasper-report-viewer-bundle without Composer
On this page you can find all versions of the php package mesd/jasper-report-viewer-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mesd/jasper-report-viewer-bundle
More information about mesd/jasper-report-viewer-bundle
Files in mesd/jasper-report-viewer-bundle
Package jasper-report-viewer-bundle
Short Description Adds a viewer element to work with the mesd/jasper-report-bundle
License MIT
Informations about the package jasper-report-viewer-bundle
Overview
The report viewer serves as an additional layer on top of the Jasper Report Bundle and provides a visual interface for displaying and running reports, and viewing report history. It requires the Jasper Report Bundle in order to work.
Features
- Provides a list of all reports a user can view
- Provides an interface to handle report input
- Displays reports and ajax loads their pages
- UI for report history
Todo
- [ ] Currently relies on a cdn for third party css and javascript, needs to be better integrated into the bundle
- [ ] Tests are seriously needed
Installation
Install Report Bundle
The report viewer bundle requires the report bundle to have been set up in order to work. If the report bundle is not yet installed, go here
Add to Composer
The first step is to add the bundle to the composer.json of the application.
Add to the AppKernel
In order for the application to load the bundle, it needs to be registered in the AppKernel.
Add To Assetic
To have assets work, the bundle has to be registered with assetic. This is done in the config file where the rest of assetic is setup. Example:
Import the Routing File
The final step is to include the report viewer's routing file in the main application's routing file. Look at the example below:
Usage
To add links to the report home and report viewer use the following twig functions
These routes may also be used in controllers:
or:
A further look at each function:
- mesd_jasper_reportviewer_home(linkText, classes = ' ', openInNewTab = true)
- linkText => The text to display on the link
- classes => classes to apply to the anchor tag
- openInNewTab => whether to open the link in a new tab/window or not
- mesd_jasper_reportviewer_report_link(reportUri, linkText, classes = ' ', openInNewTab = true, hideHome = true)
- reportUri => The uri of the report to open the report viewer to on the Jasper Server
- linkText => The text display on the link
- classes => classes to apply to the anchor tag
- openInNewTab => whether to open the link in a new tab/window or not
- hideHome => Whether to display navbar links to home and history
- mesd_jasper_reportviewer_stored_report_link(reportUri, requestId, linkText, classes = ' ', openInNewTab = true, hideHome = true)
- reportUri => The uri of the report to open the report viewer to on the Jasper Server
- requestId => The request Id of the stored report
- linkText => The text display on the link
- classes => classes to apply to the anchor tag
- openInNewTab => whether to open the link in a new tab/window or not
- hideHome => Whether to display navbar links to home and history
API Documentation
Generated documentation exists in the bundle under the docs directory.
License
This project is licensed under the MIT license. See the LICENSE.md file for more information.