Yii Framework Forum: Ireport extension - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ireport extension Rate Topic: -----

#1 User is offline   vladotg 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 15-July 11

Posted 03 March 2012 - 09:35 AM

Hello! Does anyone use this extension?
I try to use it in my yii app but I get these errors when I try to generate some report from database:

Undefined index: gname
Undefined index: gname
Undefined variable: isPrintRepeatedValues

in file ReportRender.php

Can you please help me with this?

Thanks in advance!
0

#2 User is offline   Giorgio Loi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 27-March 12

Posted 06 April 2012 - 12:50 PM

View Postvladotg, on 03 March 2012 - 09:35 AM, said:

Hello! Does anyone use this extension?
I try to use it in my yii app but I get these errors when I try to generate some report from database:

Undefined index: gname
Undefined index: gname
Undefined variable: isPrintRepeatedValues

in file ReportRender.php

Can you please help me with this?

Thanks in advance!

I get these errors in IReportParser.php
I have changed "gname" to "name" in lines that get errors for "gname"
For the isPrintRepeatedValues error I added the default value (true) for the variable in the default section of the switch at line 611
switch ($data->textFieldExpression) {
...
...
default:
                $writeHTML = false;
                $isPrintRepeatedValues = true;  // <--- I add this line
                if ($data->reportElement->property["name"] == "writeHTML")
                    $writeHTML = $data->reportElement->property["value"];
                if (isset($data->reportElement["isPrintRepeatedValues"]))
                    $isPrintRepeatedValues = $data->reportElement["isPrintRepeatedValues"];

                $this->pointer[] = array(
                    "type" => "MultiCell",
                    "width" => $data->reportElement["width"],
                    "height" => $height,
                    "txt" => $data->textFieldExpression,
                    "border" => $border,
                    "align" => $align,
                    "fill" => $fill,
                    "hidden_type" => "field",
                    "soverflow" => $stretchoverflow,
                    "poverflow" => $printoverflow,
                    "printWhenExpression" => $data->reportElement->printWhenExpression,
                    "link" => substr($data->hyperlinkReferenceExpression, 1, -1),
                    "pattern" => $data["pattern"],
                    "writeHTML" => $writeHTML,
                    "isPrintRepeatedValues" => $isPrintRepeatedValues,
                    "rotation" => $rotation);
                break;


0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users