⚠ 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 is an archived forum. ⚠

  •     

profile picture

set_relation_n_n display issue



jcasanova
  • profile picture
  • Member

Posted 04 May 2012 - 15:34 PM

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!

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

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/