⚠ 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

record view different from grid view



Woz_Mann
  • profile picture
  • Member

Posted 26 April 2013 - 11:54 AM

Hi Guys,

 

I am wondering if this is possible,

 

I have some tables that have over 50 fields associated with it. What I am wanting to do, is to be able to show only the key information in the grid view, but to be able to see the entire record in the edit view.

 

Can I do this, and any suggestions how.

 

Cheers

Woz


DREON
  • profile picture
  • Member

Posted 26 April 2013 - 12:44 PM

use $crud->columns();

example you have fields fname,lname,middle,bday.age and you want only show on your grid view table is

 

fname ,lname

 

use $crud->columns('fname','lname');

 

or use

example you have fields fname,lname,middle and you want only show on your grid view table is

fname,lname,middle,bday

 

$crud->unset_columns('age');


Woz_Mann
  • profile picture
  • Member

Posted 26 April 2013 - 13:03 PM

thanks!


DREON
  • profile picture
  • Member

Posted 26 April 2013 - 13:11 PM

use $crud->columns(); if you want to view only few columns on your grid

 

use $crud->unset_columns(); if you want to view all ur fields except some fields