⚠ 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 forum is read-only and soon will be archived. ⚠


jariberi

Member Since 15 May 2013
Offline Last Active May 16 2013 05:29 PM
-----

Topics I've Started

CRUD in a view, with set_primary_key, no work

15 May 2013 - 10:52 PM

Hello! Sorry for my english, i have a problem.

 

I have 2 tables:

 

entidades (cuit, denominacion, direccion)

detalle_clientes (idclientes, limite_credito)

 

and a view:

clientes defined as:

 

 

select entidades.cuit, detalle_clientes.idclientes, entidades.denominacion,entidades.direccion, detalle_clientes.limite_credito from entidades inner join detalle_clientes on entidades.cuit=detalle_clientes.entidades_cuit;
 
Show the data, the grid, but when i want add or edit, not work. No inform any error, just freeze.
 
Here is my code:
 
$crud = new grocery_CRUD();
$crud->set_theme('flexigrid');
$crud->set_table('clientes');
$crud->set_subject('Clientes');
$crud->set_language('spanish');
$crud->set_primary_key('idclientes','clientes');
$crud->columns(
       'idclientes',
       'cuit',
       'denominacion',
       'direccion',
       'limite_credito'
       );


     $output = $crud->render();
$this->load->view('entidades/clientes',$output);

 

 

Can you help me please?

 

Thanks!!!!