Search This Blog

Wednesday, July 25, 2012

BIRT Report filters with PHP JAVA Bridge



BIRT Report filters with PHP JAVA Bridge 

$report = $birtReportEngine->openReportDesign("${here}/myreport.rptdesign");
$filter = new java("org.eclipse.birt.report.model.api.elements.structures.FilterCondition"); // create a new filter condition object

$filter->setExpr("row['id']");

$filter->setOperator("in"); 
$filter->setValue1('["32","679","333","233"]');
$report->getDesignHandle()->findDataSet("Employees")->addFilter($filter);

No comments:

Post a Comment