Whilst on the topic of ComboBox (meaning this is slightly off topic of the
other thread), does anyone have advice or a link to a resource to help me
with a problem I'm having with ComboBox/FilteringSelect?  My main problem is
that I am just learning both Dojo and ZF and it's quite a lot of information
to digest.  The first bit of code works, getting the data correctly and
populating the drop down.  The second does not though.  I think it has
something to do with the searchAttr, but from everything I've seen it looks
like I'm implementing it correctly.   Also what is the difference between
adding an element to a form and using what I think is the view-helper to
create the element ($this->FilteringSelect) ?

Can anyone tell me why this snippet works:

      $selectForm->addElement(
                'FilteringSelect',
                'filterselectremote',
                array('storeId' => 'stateStore',
                    'storeType' => 'dojo.data.ItemFileReadStore',
                    'storeParams' => array(
                       'url' =>
$this->url(array('controller'=>'student','action'=>'getContractMonths'))),
                    'dijitParams' => array(
                        'searchAttr' => '_name',
                    ),));

But this does not:

    echo $this->FilteringSelect('contractMonths',null,
        array(
        'autocomplete' => true,
        'store'        => 'stateStore',
        'storeType'    => 'dojo.data.ItemFileReadStore',
        'storeParams'  => array('url' =>
$this->url(array('controller'=>'student','action'=>'getContractMonths'))),
        'dijitParams'  => array('searchAttr'=>'_name')
    ));

Thanks for any help you can offer, I spent all day yesterday just getting
this to work and would like to know what I'm doing wrong :)
-Chris

-- 
View this message in context: 
http://n4.nabble.com/ComboBox-FilteringSelect-confusion-tp1476093p1476093.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to