I am trying to display a image in grocery crud edit page from another table. Have provided the relation it is just displaying the file name and not the image. Below is my code let me know where I need to correct. Also don't want to update the image in my edit table (inwardinventory). just need to display it based on selection of sacoskucode column from mastersku table.
public function entry()
{
$crud = new grocery_CRUD();
//$crud->set_theme('datatables');
$crud->unset_delete();
$crud->set_table('inwardinventory');
$crud->set_primary_key('SacoSku','inwardinventory');
$crud->set_relation('SacoSku','mastersku','SacoSku');
$crud->set_relation('PdtImage','mastersku','PdtImage');
$crud->set_field_upload('PdtImage','assets/uploads/files');
$crud->set_subject('In Out Stock');
$crud->field_type('TranscationType','dropdown',
array('IN' => 'Inward / Purchase','OUT' => 'Out Ward / Sale / Basement'));
$output = $crud->render();
$this->_example_output($output);
}