Jump to content


carperolm

Member Since 19 Dec 2013
Offline Last Active Mar 10 2016 11:40 AM
-----

Posts I've Made

In Topic: Where clauses on relation table in list view?

03 March 2016 - 12:24 PM

I found the solution here:

http://www.grocerycr...filtering-data/


In Topic: Set a n-n relation with where clause

03 March 2016 - 12:24 PM

I found the solution here:

http://www.grocerycr...filtering-data/


In Topic: set_relation_n_n where on list view

03 March 2016 - 12:24 PM

I found the solution here:

http://www.grocerycr...filtering-data/


In Topic: Pre-filtering data

03 March 2016 - 12:03 PM

Thank you jgalak! you save mi time!


In Topic: set_relation_n_n where on list view

03 March 2016 - 11:28 AM

Hi Amit,

 

This is the basic code and it's working for the add and edit views, but not for the list view. I want to filter by departamento_id

$crud = new grocery_CRUD(); 
$crud->set_table('expedientes');
$crud->set_subject('Expedientes');
$where = "departamento_id = 1";
$crud->set_relation_n_n('departamentos','exped_depar','departamentos','expediente_id','departamento_id','name', null, $where);
$output = $crud->render();

Thanks