Topic: report generation issue
Hi,
I am trying to create a new report on my module “shipment” I just go through the functionality as Tracmor has used for “Asset Transaction Report”. I am getting no. of records and data from my db table but at last, when I GENERATE the report there occur an error as:
Parse error: syntax error, unexpected ';' in C:\xampp\htdocs\tracmor\includes\php\PHPReports\php\PHPReportCol.php(309) : eval()'d code on line 1
if I commit out return eval($sExpr_); [ie ////return eval($sExpr_);] then got three line [without db records] Note that my query fetch 2 rows:
Shipment Report
Shipment Field One: Shipment Field Two: Shipment Field Three: Shipment Field Four:
Shipment Field One: Shipment Field Two: Shipment Field Three: Shipment Field Four:
Shipment Field One: Shipment Field Two: Shipment Field Three: Shipment Field Four:
I expect that error is here: [but could not able to fixed it]
$oGroups = “
<GROUP NAME='shipment_id' EXPRESSION='shipment_id' PAGEBREAK='FALSE'>
<HEADER>
<ROW>
<COL ALIGN='LEFT' TYPE='EXPRESSION' COLSPAN='”.(4 + $intCustomFieldCount).”' CELLCLASS='report_section_heading'>\$this->getValue('shipment__transaction_id__shipping_account_id__short_description').' by '.(\$this->getValue('shipment__transaction_id__modified_by')?\$this->getValue('shipment__transaction_id__modified_by').' by '.(\$this->getValue('shipment__transaction_id__modified_by')?\$this->getValue('shipment__transaction_id__modified_by').' '.\$this->getValue('shipment__transaction_id__modified_by').' on '.\$this->getValue('shipment__transaction_id__modified_date'):\$this->getValue('shipment__transaction_id__created_by__modified_by').' '.\$this->getValue('shipment__transaction_id__created_by').' on '.\$this->getValue('shipment__transaction_id__creation_date'))</COL>
</ROW>
<ROW>
<COL CELLCLASS='report_column_header'>Shipment Field One:</COL>
<COL CELLCLASS='report_column_header'>Shipment Field Two:</COL>
<COL CELLCLASS='report_column_header'>Shipment Field Three:</COL>
<COL CELLCLASS='report_column_header'>Shipment Field Four:</COL>
$strXmlColNameByCustomField
</ROW>
</HEADER>
<FIELDS>
</FIELDS>
</GROUP>”;
Please, somebody help to fix the problem...!
Thanks in advance
Neo
Neo