omusico / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

DisplayGroups #776

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Estou usando assim o addDisplayGroup : 

        $grid->getForm(1)->addDisplayGroup(array('com_fiv_mo',                              
                                     'com_fiv_bi',                              
                                     'com_fiv_bl',                              
                                     'com_fiv_bx',                              
                                     'com_fiv_be',                              
                                     'com_fiv_d8'),'transferencia',array('legend' =>'grupo1'));

        $grid->getForm(1)->getDisplayGroup('transferencia')->setDecorators($form->getSubformElementDecorator());

E recebo o seguinte erro :

Message: Method getType does not exist

Stack trace:

#0 C:\xampp\htdocs\snp\library\Zend\Form\Decorator\ViewHelper.php(92): 
Zend_Form_DisplayGroup->__call('getType', Array)
#1 C:\xampp\htdocs\snp\library\Zend\Form\Decorator\ViewHelper.php(92): 
Zend_Form_DisplayGroup->getType()
#2 C:\xampp\htdocs\snp\library\Zend\Form\Decorator\ViewHelper.php(233): 
Zend_Form_Decorator_ViewHelper->getHelper()
#3 C:\xampp\htdocs\snp\library\Zend\Form\DisplayGroup.php(878): 
Zend_Form_Decorator_ViewHelper->render('')
#4 C:\xampp\htdocs\snp\library\Zend\Form\Decorator\FormElements.php(101): 
Zend_Form_DisplayGroup->render()
#5 C:\xampp\htdocs\snp\library\Zend\Form.php(2887): 
Zend_Form_Decorator_FormElements->render('')
#6 C:\xampp\htdocs\snp\library\Zend\Form\Decorator\FormElements.php(101): 
Zend_Form->render()
#7 C:\xampp\htdocs\snp\library\Zend\Form.php(2887): 
Zend_Form_Decorator_FormElements->render('')
#8 C:\xampp\htdocs\snp\library\Bvb\Grid\Deploy\Table.php(1751): 
Zend_Form->render()
#9 
C:\xampp\htdocs\snp\application\modules\veterinario\controllers\fivController.ph
p(281): Bvb_Grid_Deploy_Table->deploy()
#10 C:\xampp\htdocs\snp\library\Zend\Controller\Action.php(513): 
Veterinario_FivController->comfivAction()
#11 C:\xampp\htdocs\snp\library\Zend\Controller\Dispatcher\Standard.php(295): 
Zend_Controller_Action->dispatch('comfivAction')
#12 C:\xampp\htdocs\snp\library\Zend\Controller\Front.php(954): 
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Htt
p), Object(Zend_Controller_Response_Http))
#13 C:\xampp\htdocs\snp\library\Zend\Application\Bootstrap\Bootstrap.php(97): 
Zend_Controller_Front->dispatch()
#14 C:\xampp\htdocs\snp\library\Zend\Application.php(366): 
Zend_Application_Bootstrap_Bootstrap->run()
#15 C:\xampp\htdocs\snp\public\index.php(98): Zend_Application->run()
#16 {main} 

É possível trabalhar com DisplayGroups ?

Obrigado

Original issue reported on code.google.com by alessand...@gmail.com on 11 Oct 2011 at 7:21