Reportes en StandardForm

edited mayo 2008 in Bugs y Problemas
Buen Día Compañeros,

Actualmente he desarrollados varios proyectos con Kumbia, sin embargo es la primera vez que desarrollo uno utilizando el StandardForm en la version 0.5, y he detectado varios bug's en los reportes.

Sucede que estoy utilizando la función ignore() en el controlador para no cargar cierto campo en la vista:

$this->ignore("id");

Esto ha ocacionado que a la hora de imprimir los reportes me presente los siguientes errores:


Error en Reporte PDF:
Notice: Undefined index: fl_id in /proyecto/library/kumbia/controller/standard_form/standard_form.php on line 190


Reporte en excel:

Strict Standards: Assigning the return value of new by reference is deprecated in /proyecto/library/excel/main.php on line 608

Strict Standards: Assigning the return value of new by reference is deprecated in /proyecto/library/excel/main.php on line 611

Strict Standards: Assigning the return value of new by reference is deprecated in /proyecto/library/excel/reader.php on line 124

Strict Standards: Assigning the return value of new by reference is deprecated in /proyecto/library/excel/writer/workbook.php on line 186

Strict Standards: Assigning the return value of new by reference is deprecated in /proyecto/library/excel/writer/workbook.php on line 195


Reporte en word:

Notice: Undefined variable: title in /proyecto/library/kumbia/report/format/doc.php on line 41

Notice: Undefined variable: title in /proyecto/library/kumbia/report/format/doc.php on line 45

Notice: Undefined index: fecsis in /proyecto/library/kumbia/report/format/doc.php on line 46

Notice: Undefined variable: headerArray in /proyecto/library/kumbia/report/format/doc.php on line 51

Notice: Undefined variable: result in /proyecto/library/kumbia/report/format/doc.php on line 57

Warning: Invalid argument supplied for foreach() in /proyecto/library/kumbia/report/format/doc.php on line 57


Reporte en html:

Notice: Undefined variable: title in /proyecto/library/kumbia/report/format/htm.php on line 41

Notice: Undefined property: Config::$project in /proyecto/library/kumbia/report/format/htm.php on line 44

Notice: Trying to get property of non-object in /proyecto/library/kumbia/report/format/htm.php on line 44

Notice: Undefined variable: title in /proyecto/library/kumbia/report/format/htm.php on line 45

Notice: Undefined variable: headerArray in /proyecto/library/kumbia/report/format/htm.php on line 51

Notice: Undefined variable: result in /proyecto/library/kumbia/report/format/htm.php on line 57

Warning: Invalid argument supplied for foreach() in /proyecto/library/kumbia/report/format/htm.php on line 57


De todos los errores mostrados, por falta de tiempo solo pude soluciona el que genera el PDF, y de la siguiente manera:

Solución Reporte PDF:
Archivo: /proyecto/library/kumbia/controller/standard_form/standard_form.php

Anterior:
189 foreach($this->{$modelName}->attributes_names as $field_name){
190      $this->{$modelName}->$field_name = $_REQUEST["fl_$field_name"];
191 }
Nuevo:
189 foreach($this->{$modelName}->attributes_names as $field_name){
190      if (isset($_REQUEST["fl_$field_name"]))
191           $this->{$modelName}->$field_name = $_REQUEST["fl_$field_name"];
192 }

Dejo en manos de la comunidad, la solución del resto. Por mi parte una vez que encuentre alguna otra solución se las haré llegar.

Saludos.

Comentarios

  • Gracia lo revisamos y lo subimos...

    <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
  • edited 3:36
    Buen Día,

    Compañeros hasta ayer en la noche que revise la última versión del SVN, me percaté de que no se ha subido la solución que propuse, sin embargo esto me da la oportunidad de contribuir un poco mas.

    hE resulto todos los bugs, al parecer son tonterías pero que van a ayudar a mas de uno <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> .

    A continuación las soluciones:
    Solución Reporte EXCEL[/list:u]
    /proyecto/library/excel/main&#46;php
    608&#46; $a = new $ec($code, $mode, $options, $userinfo);
    611&#46; $a = new $ec($message, $code, $mode, $options, $userinfo);     
    
    /proyecto/library/excel/reader&#46;php
    124&#46; $this-&gt;_ole = new OLERead();
    
    /proyecto/library/excel/writer/workbook&#46;php
    186&#46; $this-&gt;_parser = new Spreadsheet_Excel_Writer_Parser($this-&gt;_byte_order, $this-&gt;_BIFF_version);
    195&#46; $this-&gt;_tmp_format = new Spreadsheet_Excel_Writer_Format($this-&gt;_BIFF_version);
    
    Solución Reporte WORD[/list:u]
    /proyecto/library/kumbia/report/format/doc&#46;php
    32&#46;  function htm($result, $sumArray, $title, $weightArray, $headerArray){
    46&#46;  &lt;div style='font-size&#58;18px;font-family&#58;Verdana;color&#58;#000000'&gt;&quot;&#46;date(&quot;Y-m-d&quot;)&#46;&quot;&lt;/div&gt;\n
    
    Solución Reporte HTML[/list:u]
    library/kumbia/report/format/htm&#46;php
    32&#46;  function htm($result, $sumArray, $title, $weightArray, $headerArray){
    44&#46;  &lt;div style='font-size&#58;20px;font-family&#58;Verdana;color&#58;#000000'&gt;&quot; &#46;strtoupper($config-&gt;$active_app-&gt;name)&#46;&quot;&lt;/div&gt;\n
    

    Saludos <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
  • edited 3:36
    Gracias por la aportación, a ver si Deiv o Emilio la suben al SVN
  • edited 3:36
    Me viene como agua de mayo, estaba liado ahora mismo con la solución de estos bugs <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
  • Ya estoy subiendo los cambios y gracias nuevamente <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Sign In or Register to comment.