⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Issue whith export and print buttons



Pedro Bernal
  • profile picture
  • Member

Posted 13 March 2014 - 16: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);

rdroguett
  • profile picture
  • Member

Posted 25 January 2019 - 14:54 PM

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

rdroguett
  • profile picture
  • Member

Posted 25 January 2019 - 14: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.