Hello everybody
In PHPRunner 8.1 I need to add a custom chart (google chart) in a list page.
To build this chart I need to use the same data are shown in the grid of this page.
The question is:
Is it possible retrieve the query data from a code snippet, avoiding a new query?
As workaround in this moment I do this
- in events-> after record processed I save each row in a session array
- later inside the snippet I use the data to buld the chart and I unset the session var
I also test this other way:
- in events-> fetch records I copy $rs object in session
- inside the snippet I use the result object to build the chart.
BUT
If I do so, data in the grid are not printed anymore.
(to be honest even just a comment in this event page blocks the data grid printing).
So I went back to first workaround.
Many thanks