Hi, Im new to yii and need some help.
I have CJuiAutoComplete working and it’s showing values from the database - I have it returning the ID from the database.
Upon selection of a value from the autocomplete, I want a GridView to show data based on the ID that was returned by auto complete.
For example, imagine the autocomplete is showing a list of companies and when I select a company, a grid view below shows a list of the companies invoices.
I can’t figure out how to trigger the grid view to look up the invoices database based on the company Id that’s returned by the auto complete.
I have worked out that in CJuiAutoComplete I need to use ‘select’ as in:
'select'=>'<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' />??'
Can someone please help me with this. Since i’m new Id’ really appreciate some workable code that I can hopefully work with.
Thanks for your help.