⚠ 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

Dropdown list filtering.



tlc033

tlc033
  • profile picture
  • Member

Posted 07 November 2012 - 16:59 PM

Hi. I need to select from from dropdown list but with filter.
I can't find solution.

For exemple:
.....
$crud->set_relation('country_id','countries','name_country'); // List of country.
$crud->set_relation('channel_id','channels','name_channel'); //List of channel.
.....

My question:
If is selected one name_country i need in the nest dropdown list onli name_channel who have same country_id.
If i use like this:

$crud->set_relation('channel_id','channels','name_channel',array('country_id' => '1'));

i can see list of channel who have country_id=1, but name_country is not selected yet.
How can i resolve this?

THX.
Спасибо.

victor

victor
  • profile picture
  • Member

Posted 07 November 2012 - 17:12 PM

Hi, tlc033 and welcome to the forum!
Может это тебе поможет : /topic/72-categories-and-subcategories/

tlc033

tlc033
  • profile picture
  • Member

Posted 07 November 2012 - 17:21 PM

Спасибo. Вот это я не нашел.
Пива с моеи стороне (beer) !

THX a lot.

victor

victor
  • profile picture
  • Member

Posted 07 November 2012 - 17:36 PM

Not at all!