Jump to content


How to set fields to be export ??

Export

  • Please log in to reply
2 replies to this topic

#1 vipul sharma

vipul sharma

    Newbie

  • Members
  • Pip
  • 1 posts

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.

 

.

 

 

 

 

 

 



#2 Paul Savostin

Paul Savostin

    Advanced Member

  • Members
  • PipPipPip
  • 229 posts
  • LocationUkraine

Posted 20 June 2015 - 04:08 AM

Hi! What theme do you use?



#3 hulabula

hulabula

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 11 December 2015 - 06: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');

 

 







Also tagged with one or more of these keywords: Export

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users