I have 2 tables, order & software_list and table details are :
1. order :
id_order
software_list_fk
quantity
2. software_list :
id_software
software_name
part_number
I want to display different values on dropdownlist field & table column. This is my code for dropdownlist values on field :
public function orders_management() { try{ $crud = new grocery_CRUD(); $crud->set_table('order'); $crud->set_subject('Order'); $crud->display_as('software_list_fk','Software'); $crud->set_relation('software_list_fk','software_list', '{software_name} | {part_number}'); }catch(Exception $e){ show_error($e->getMessage().' --- '.$e->getTraceAsString()); } }
This works for my dropdownlist values as shown below :
but I only want to display 'software_name' in table column not 'software name | part_number' as shown below :
I tried to use callback_column but didn't work.
So, how to resolve that problem?
Thanks in advance