⚠ In case you've missed it we are migrating 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 forum is read-only and soon will be archived. ⚠


Incorrect table info showing up


  • Please log in to reply
4 replies to this topic

#1 DRKgatsby

DRKgatsby

    Member

  • Members
  • PipPip
  • 15 posts

Posted 12 July 2012 - 08:11 PM

I have found an issue where the wrong amount of pages and items in the table shows up.

Here is an example:

sample-error.png

I was wondering if there was a way to auto-refresh the table on the initial loading of the table.

Thanks

#2 fdias

fdias

    grocery CRUD Addict

  • Members
  • PipPipPip
  • 93 posts

Posted 13 July 2012 - 05:40 PM

Can you explain a littler futher?

The pages are correct, then number of items displayed are wrong though, as you have 4 items and not 10.

Did you change anything on the code code? What version of GC are you using?

#3 DRKgatsby

DRKgatsby

    Member

  • Members
  • PipPip
  • 15 posts

Posted 17 July 2012 - 02:10 PM

I'm using GC 1.1.8 with CodeIgniter 2.1.0. I didn't change anything in the code. The only difference is that they are in iframes since it was the only way to get multiple tables on the same page.

This is my code:
 function crud_loc_equip($location_id) {
$crud = new grocery_CRUD(); $crud->set_table('location_equipment');
$crud->set_model('loc_equip_crud_model');
$crud->columns('name','item_number','serial_number','description','account_number','install_date','service_contract','status');
$crud->display_as('name','Manufacturer');
$crud->display_as('item_number','Item Number');
$crud->display_as('serial_number','Serial Number');
$crud->display_as('description','Name');
$crud->display_as('account_number','Account Number');
$crud->display_as('install_date','Install Date');
$crud->display_as('service_contract','Service Contract');
$this->db->where('location_equipment.location_id',$location_id);
$crud->unset_operations();
$output = $crud->render();
$this->_example_output($output); }


<iframe id="myframe2" src="<?php echo site_url('location/crud_loc_equip/' . $location_id);?>" scrolling="yes" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>


#4 fdias

fdias

    grocery CRUD Addict

  • Members
  • PipPipPip
  • 93 posts

Posted 17 July 2012 - 08:56 PM

I suggest you update to GC 1.2.3 and CI 2.1.2 and test. A lot has been fixed on both GC and CI...

#5 noskov

noskov

    grocery CRUD Guru

  • Advanced Member
  • PipPipPip
  • 175 posts

Posted 17 July 2012 - 09:13 PM

Hi, my friends!
DRKgatsby, also look at this topic about the work that have made Xrymz.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users