Needs work
Project:
Forena Reports
Version:
7.x-3.9
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2013 at 22:51 UTC
Updated:
18 Oct 2014 at 16:37 UTC
Jump to comment: Most recent
Comments
Comment #1
romaingar commentedOk i've read carrefully the doc. So my renderer works !
i've use the hook_forena_controls to refer my class file.
like this :
and i've writing this renderer
(i didn't fid the good way to replace the reportDocNode with an array of token->value... so i use the old way...)
(clear cache)
and in my layout :
et voilà.. maybe it could be usefull for someone...
thanks !
Comment #2
metzlerd commentedThis is a very nice example of a simple custom renderer implementation.
FYI: For those interested in rows with totals, there are a couple of ways to achieve this without the need for custom renderers.
MySQL and other databases provide a ROLLUP clause that can be used to generate summary rows of a table.
Alternatively you can use xpath expressions in forena to achieve totals:
Disclaimer: This syntax was inadvertantly broken in 7.x-3.9, but 7.x-3.11 has the issue resolved so that the xpath expressions may be used in the summary
rows as well.
Comment #3
Pierre.Vriens commentedReassigning this issue to get this info included in the forena help reports (ie the report designer guide and/or the forena developer guide).
Comment #4
Pierre.Vriens commentedI might not have sufficient time to get this issue completed in the 7.x-4.x release, apart of course from the enhanced tutorials regarding available hooks, etc which did make it already in the current 7.x-4.x release. If that's the case I'll keep in on my list of whatever next release ... unless of course anybody else worked on this issue in the meantime ...