Jump to content


Dropdown list filtering.

dropdown filter filtering set_relation

  • Please log in to reply
3 replies to this topic

#1 tlc033

tlc033

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts
  • LocationChisinau

Posted 07 November 2012 - 04: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.
Спасибо.

We are a web company from Republic of Moldova and offers services as, web design, web development, eCommerce, online marketing and advertising, consulting and web optimization, search engine optimization (SEO) and social media optimization (SMO), branding and rebranding.

 

          logo_small.png  

                         elitiv.com  

                  

 

 


#2 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 07 November 2012 - 05:12 PM

Hi, tlc033 and welcome to the forum!
Может это тебе поможет : http://www.grocerycr...-subcategories/

#3 tlc033

tlc033

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts
  • LocationChisinau

Posted 07 November 2012 - 05:21 PM

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

THX a lot.

We are a web company from Republic of Moldova and offers services as, web design, web development, eCommerce, online marketing and advertising, consulting and web optimization, search engine optimization (SEO) and social media optimization (SMO), branding and rebranding.

 

          logo_small.png  

                         elitiv.com  

                  

 

 


#4 victor

victor

    grocery CRUD Hero

  • Advanced Member
  • PipPipPip
  • 967 posts
  • LocationMinsk

Posted 07 November 2012 - 05:36 PM

Not at all!





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users