Modify $report within the code [message #1841] |
Fri, 14 November 2008 08:45 |
gpatti
Messages: 283 Registered: August 2008
|
Senior Member |
|
|
I have made great progress with a solution for selecting letter types dynamically within an application. What would really make this neat would be the ability to use a single output2 script controller and dynamically set the $where and $report parameters according to the letter selected by the user in a popup.
The $where setting is no problem but it's not currently possible (I think) to dynamically set $report. Is this something that could be achieved easily, or via a code workaround?
|
|
|
Re: Modify $report within the code [message #1849 is a reply to message #1841] |
Fri, 14 November 2008 15:56 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
The variable $GLOBALS['report'] contains the name of a file, and the contents of this file is read into another variable called $GLOBALS['report_structure'] at the start of the script within the initSession() function. Although changing the value in $GLOBALS['report'] within the object code would be a waste of time, there is nothing to stop you from changing the contents of $GLOBALS['report_structure'] before it is processed.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|