Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » PHP Birt Chart Drill Down(Drilling down into more than one report)
PHP Birt Chart Drill Down [message #884202] Sun, 10 June 2012 12:02 Go to next message
karvesh ghunsam is currently offline karvesh ghunsamFriend
Messages: 95
Registered: July 2011
Member
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] Mon, 11 June 2012 03:28 Go to previous message
karvesh ghunsam is currently offline karvesh ghunsamFriend
Messages: 95
Registered: July 2011
Member
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
Previous Topic:Errors occurred when generating the report document for the report element with ID 217. (Element ID:
Next Topic:String matching for data in grid
Goto Forum:
  


Current Time: Thu Apr 25 02:24:21 GMT 2024

Powered by FUDForum. Page generated in 0.02855 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top