Install and enable the module
Download and install from this link: http://ftp.drupal.org/files/projects/forena-7.x-4.5.tar.gzEnable all Forena modules which should be three of them.
Configure forena report
Go into admin/config/content/forena and set up Forena General settings.Add data source
Go into admin/config/content/forena/data and add the data source.Pay attention to the Path field which is the place where the data block files like sql files will be located, and the other fields can be left as default.
Grant permissions of data source
Go in to admin/people/permissions.Search the data source created at the previous step and grant the permissions for specific roles.
Note: The data source won't show at the steps below if the permissions are not granted to the associated role.
Add sql data blocks
Add your sql query files under the path of the data source referring to the sql files under forena/repos/drupal folder.Create forena report
Go in to admin/structure/forena and click 'Create New Report'.Following the steps of 'Create Report' wizard and the new forena report will be created.
After the report created, the page will be redirected to reports/test_report/edit where you can add your data blocks.
Click the 'data' button and select the data block where your sql query resides in.
Add other formats of report such as csv html and email
Go to admin/structure/forena and click the edit link for the report you want to add formats for.Switch to Document Type tab and the supported formats will show up.
Tick the formats you want to add and click the Update button, and the formats have been added.
Add data tables support for report pagination
Download the JQuery Datatables plug-in on the website of https://www.datatables.net/Unzip and copy the plug-in to the folder of 'sites/all/libraries/dataTables'(dataTables is case-sensitive).
Make sure the path named 'sites/all/libraries/dataTables/media/js/jquery.dataTables.js' exists
Go to Drupal status report page and search 'Forena dataTables support'. Make sure there are no warnings and errors
No comments:
Post a Comment