PHP Birt Chart Drill Down [message #884202] |
Sun, 10 June 2012 08:02  |
Eclipse User |
|
|
|
Dear All,
I have a master report that can drill down to two other reports depending on the menu the user clicks. Now, this works fine in the eclipse preview.
When it comes to php, i have seen in the example that i need to include the following lines of code in the master report:
$URLPrefix = $path_parts['dirname'] . "/serviceTypeKPI.php";
where the url above is the php file that calls the drill down detail file
I also need to add the following code in the php master file:
$taskOptions->setBaseURL( $URLPrefix);
Now my question is, i have 2 possible urls of drill down detail. How do i change the code in the master file so that it can cater for the other possible drill down php file?
Please help me here
Thanks in advance
Karvesh
|
|
|
Re: PHP Birt Chart Drill Down [message #884420 is a reply to message #884202] |
Sun, 10 June 2012 23:28  |
Eclipse User |
|
|
|
Dear All,
I managed to find the solution.
In fact the report name depending on the drill down is already passed in the detail php file in the $_REQUEST['__report'] variable.
$rpt = $_REQUEST['__report'] ;
if( substr(PHP_OS,0,3) == 'WIN' )
{
$rpt = substr($rpt, 1);
}
I missed that point.
However, i had to do the following change to the path of the report so that it worked:
$rpt = str_replace("/", "\\\\", $rpt);
Karvesh
|
|
|
Powered by
FUDForum. Page generated in 0.05399 seconds