Jump to content


Issue whith export and print buttons

export print where

  • Please log in to reply
2 replies to this topic

#1 Pedro Bernal

Pedro Bernal

    Member

  • Members
  • PipPip
  • 12 posts

Posted 13 March 2014 - 04:13 PM

Hi there I am having an issue: The export and print buttons doesnt work when I include a where method into my controller function, is there a way to fix it?.

 

 

Thanks!

 

Here is the code of my controller.

 $fechainicio = $this->input->post('fechainicio');
      $fechafin = $this->input->post('fechafin');
      $crud = new grocery_CRUD();
      $crud->where('fksitio',$_SESSION['site']);
      $crud->where('fecha >=',$fechainicio);
      $crud->where('fecha <=',$fechafin);
      $crud->set_table('formatos');
      $crud->set_field_upload('adjunto','assets/uploads');
      $crud->columns('fksitio', 'fecha', 'resultado','comentarios','adjunto');
      $crud->edit_fields('fksitio', 'fecha', 'resultado','comentarios','adjunto');
      $crud->display_as('fksitio','Sitio');$crud->display_as('adjunto','Archivo');
      $crud->set_language("spanish");
      $crud->set_primary_key('nombre','sitios');
      $crud->set_relation('fksitio','sitios','nombre');   
      $output = $crud->render();
      $data['username'] = $session_data['username'];
      $data['level'] = $session_data['level'];
      $this->load->view('CRUD_Formatos.php', $output);


#2 rdroguett

rdroguett

    Member

  • Members
  • PipPip
  • 18 posts

Posted 25 January 2019 - 02:54 PM

I have a some problem. The post data lost when i press export or print action

#3 rdroguett

rdroguett

    Member

  • Members
  • PipPip
  • 18 posts

Posted 25 January 2019 - 02:59 PM

The data is lost, when your press the print or export button. I dont have any solutions when i send in get or post method.





Also tagged with one or more of these keywords: export, print, where

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users