Issues

ZF-12151: Zend_Dojo_Form_Element_ComboBox doesn't works with zend_dojo_dataStore

Issue Type: Bug Created: 2012-04-13T12:47:35.000+0000 Last Updated: 2012-04-13T12:55:36.000+0000 Status: Open Fix version(s): Reporter: Fabiane (fabiapo) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dojo

  • addElement
  • zend-form-element

Related issues: Attachments:

Description

Zend_Dojo_Form_Element_ComboBox doesn't works with zend_dojo_dataStore. It looks like a textbox and doesn't call fetch method of datastore. If I comment out the variable $options or StoreType, the element is displayed as a empty combo.

Here's my code:

class Application_Form_Usuario extends Zend_Dojo_Form {
public function init()
{ $options = array('label'=>'Perfil:', 'storeId' => 'perfilStore', 'storeType' => 'dojo.data.ItemFileReadStore', 'storeParams' => array('url' => '/admin/usuario/gerar-json-perfil/sort/ds_perfil'),'dijitParams' => array('searchAttr' => 'ds_perfil'));
$element = new Zend_Dojo_Form_Element_ComboBox('id_perfil', $options); $this->addElement($element); } }

My json is working perfectly and returns the following data:

{"identifier":"id_perfil","items":[{"id_perfil":1,"ds_perfil":"ADMINISTRATOR","id_cliente":1,"id_uf":2,"bl_situacao":"1","dt_inclusao":"2012-03-21 14:51:07.790503","dt_alteracao":"2012-03-21 14:51:07.790503"}]}

Why does this happen? This is a bug?

Thanks!

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts