⚠ 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

Change relation for edit field



theshiftexchange

theshiftexchange
  • profile picture
  • Member

Posted 23 April 2012 - 14:13 PM

Hi,

However- is it possible to change the relation for the table view?

i.e. when viewing the table I want

$crud->set_relation('my_column', 'my_table', 'short_name');

and when editing the table I want

$crud->set_relation('my_column', 'my_table', 'name');


So that the dropdown lists can be different to what is actually displayed?

I tried using callbacks - but I cant seem to get it to work - anyone have any ideas how this might be done? Thanks in advance.