⚠ 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

Feature Request : diferent values in columns and fields



fabgonber

fabgonber
  • profile picture
  • Member

Posted 05 November 2012 - 00:42 AM

Hi All,

For example, i have this table in my database:
country(country_id,country_short,country_full_name) values (1,'USA','United States of América'),(1,'DE','Dermany')

I would like do:

$crud->set_relation('country_id','country','country_short','country_full_name');


And i would like see the country short in the columns view, but the full name in the add/edit form.

Regards,

noskov.biz

noskov.biz
  • profile picture
  • Member

Posted 05 November 2012 - 07:49 AM

Hello!

This can be done with callback_column(), callback_add_field(), callback_edit_field() or callback_field() functions.

Cheers!

fabgonber

fabgonber
  • profile picture
  • Member

Posted 07 November 2012 - 23:16 PM

I do it know with callback_column, but... i can't search with this solution.