⚠ 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

Split column



edis_

edis_
  • profile picture
  • Member

Posted 20 January 2017 - 13:06 PM

crud = new grocery_CRUD;
$crud->set_table('inspection');
$crud->set_subject('Finding');
$crud->unset_columns('id', 'entry_by');
$crud->display_as('date_inp', 'Date Finding')
     ->display_as('ern_inp', 'NIK Patrol')
     ->display_as('name', 'Inspectors Name')
     ->display_as('location', 'Inspector Location');

$crud->set_relation('ern_inp', 'inspectors', '{name} ({location})');

Hey All...

I need help :

1. Why search for 'ern_inp' not working in flexigrid theme?

2. How to split 'ern_inp' become two columns?{name} in one column and {location} in one column

 

thankyou


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 24 January 2017 - 06:24 AM

Sorry, difficult to visualize what you want to convey. Is it about the issue in regards with search or is it something to do in regards with display. Can you please clarify?


edis_

edis_
  • profile picture
  • Member

Posted 25 January 2017 - 13:09 PM

Hi Amit, I want to more focus at search issue, why searching not working if there is set_relation like that codes?
For split column I use callback_column,its working for me but just for display, searching and sorting not working :(

Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 26 January 2017 - 18:38 PM

/topic/3773-search-doesnt-work-with-my-callback-column/#entry14836

 

The above link, i have shared a solution that you can implement in your system. 

 

This should help u resolve your issue with callback and search..

Happy GCing :)