⚠ 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

How to set fields to be export ??



vipul sharma

vipul sharma
  • profile picture
  • Member

Posted 19 June 2015 - 10:58 AM

I am tring to export some perticular fields from the database .

 

        $crud->columns('fra_name', 'fra_mobile', 'fra_city', 'fra_state', 'fra_email', 'fra_profession', 'fra_year_exp');
        $crud->set_subject('my subject');
        $crud->where('fra_status',0);
        $crud->order_by('fra_id','desc');
        $crud->unset_fields('fra_status');

 

In my database table I have one more field which is 'fra_address'  and i m not getting this in exported file

 

And i dont want to show 'fra_address filed' in crud html  table.

 

Please help me hopw to do it.

 

.

 

 

 

 

 

 


Paul Savostin

Paul Savostin
  • profile picture
  • Member

Posted 20 June 2015 - 04:08 AM

Hi! What theme do you use?


hulabula

hulabula
  • profile picture
  • Member

Posted 11 December 2015 - 18:01 PM

I might be wrong but I believe that if you're setting the columns you'll need to include 'fra_address' for it to appear in the export.
 
$crud->columns('fra_name', 'fra_mobile', 'fra_city', 'fra_state', 'fra_email', 'fra_profession', 'fra_year_exp', 'fra_address');