Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Modify $report within the code
Modify $report within the code [message #1841] Fri, 14 November 2008 08:45 Go to next message
gpatti is currently offline  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 Go to previous message
AJM is currently offline  AJM
Messages: 2347
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.

Previous Topic: Search date between two dates in search screen
Next Topic: std.multi2 locking rows
Goto Forum:
  


Current Time: Thu Mar 28 07:21:01 EDT 2024

Total time taken to generate the page: 0.01064 seconds