madcorp / zfdatagrid

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

rollback in before_insert function #841

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hi,
is it possible to do rollback in before_insert function .
So i check some condition in my before_insert function and i want to cancel 
insert data 
tks for help;

Please insert the appropriate values;
                    Zend Framework version: 1.11
ZFDatgrid Version (Bvb_Grid::getVersion()): 8.0
                          Operating system:xp
                               PHP Version:5.3
               Database Server and version:mysql 5.2
                          Source Adatapter:doctrine

Please provide any additional information below.

Original issue reported on code.google.com by madani...@gmail.com on 22 Mar 2012 at 8:52

GoogleCodeExporter commented 9 years ago
Hi,

You can simply redirect.

Best Regards
Ivo Monteiro

Original comment by ivomonte...@gmail.com on 22 Mar 2012 at 11:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
hi Monteiro
it works like this 
$this->_helper->redirector('index');
tks Monteiro

Original comment by madani...@gmail.com on 22 Mar 2012 at 3:15

GoogleCodeExporter commented 9 years ago
My question now is how i can display a message in the top of my grid , in the 
alerta class .
i want to display a mesasge like " Action Canceled " in top of my grid 

tks for help

Original comment by madani...@gmail.com on 22 Mar 2012 at 3:18

GoogleCodeExporter commented 9 years ago
In my application I use Zend FlashMessenger:
http://framework.zend.com/manual/en/zend.controller.actionhelpers.html

Original comment by ivomonte...@gmail.com on 22 Mar 2012 at 5:41

GoogleCodeExporter commented 9 years ago
tks Ivo Monteiro

Original comment by madani...@gmail.com on 23 Mar 2012 at 3:54

GoogleCodeExporter commented 9 years ago
You welcome.

Original comment by ivomonte...@gmail.com on 23 Mar 2012 at 10:02