I managed something like that:
public function scanero() {
	$this->db = $this->load->database('scaner',true);
	$crud = new grocery_CRUD();
	$crud->set_table('scaner_table');
	$crud->columns('type','number','serial_number','ip','status','location','change_date','text');
	$crud->unset_delete();
 	$crud->callback_after_insert(array($this, 'history_after_update'));
	$crud->callback_after_update(array($this, 'history_after_update'));
	$output = $crud->render();
	$this->_example_output($output);
    }
function history_after_update($post_array,$primary_key) {	
	$this->db = $this->load->database('skaner',true);
	$crud = new grocery_CRUD();
	$history_insert = array(
		"type" => $type,
		"number" => $number,
		"serial_number" => $serial_number,
		"ip" => $ip,
		"status" => $status,
		"location" => $location,
		"change_date"=> date('Y-m-d H:i:s'),
		"text" => $text,
		"last_update" => date('Y-m-d H:i:s')
	);
	$this->db->insert('scaner_table_history',$history_insert);
return true;
}    
There is no error message and nothing happends after pressing update button. Page is not even returning to the grid view.
I tried lots of combinations but i think i miss something in my coding logic or i need to take different approach to this but i can't figure out how can i do that
