madcorp / zfdatagrid

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

add one field in form which will save value in another table. #900

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. i am using zfdatagrid library
2. i want to add one more field in "add record" which is not in the table.
3.its value will be saved in another table

 $select = $db1->select()->from('email', array(
            'id',
            'name',
            'Email'
        ))->where("name='$this->name'");

$config= new Application_Model_config();
        $options              = $config->config($this->name);
 $element     = new Zend_Form_Element_Multiselect('name');
        $element->setLabel('Group Name');
        $element->setMultiOptions($options);
        //$element->setDecorators($formdec);
        $element->setValue($categValues);
        $zendForm->addElement($element);
        $zendForm->getElement('name')->setLabel('Group Name');

Above code is used if we have the field in "email" table what if we donot have 
field in that table??

Anybody has implemented this??

What is the expected output? What do you see instead?

Please insert the appropriate values;
Zend Framework version:
ZFDatgrid Version (Bvb_Grid::getVersion()):
Operating system:
PHP Version:
Database Server and version:
Source Adatapter:

Please provide any additional information below.

Original issue reported on code.google.com by prachiwaliaodesk on 17 Jan 2014 at 11:02