Hi, I added a relation n_n it worked, but I cant have the same result like in the Example.
here is the code and attached the images.
$this->load->library('grocery_CRUD');
$crud = new grocery_CRUD();
$crud->set_table('detalle_zonas');
$crud->set_relation_n_n('Transformadores','zonas','trafo','id_trafo', 'id_detzona','descripciontrafo');
$output = $crud->render();
here is the result add form:
[attachment=167:mine.jpg]
here is the example.
[attachment=166:example.jpg]
Also I have a question..Is it
possible to do a combo fill like "Select Your Country" -> "Select your Region" -> "Select your state" this filled from 3 tables (country,regio,state)
is it possible??
regards!
set_relation_n_n display issue
Started by jcasanova, 04 May 2012 - 15:34 PM
- Single Page
Posted 04 May 2012 - 15:34 PM
Posted 04 May 2012 - 23:05 PM
For the second example (actors) you have to add a 6th parameter that it is the priority. The only reason I didn't get rid of this multiselect is that is has the feature to change the priority of each selection.
As for your second question take a look at:
/topic/224-extra-categories-and-depended-subcategories-at-add-and-edit-form/
As for your second question take a look at:
/topic/224-extra-categories-and-depended-subcategories-at-add-and-edit-form/