Version 0.7.1 Released. It’s a bug-fix release!!!

Hi guys,

I’m please to announce the immediately availability of ZFDatagrid 0.7.1

This is a bugfix release, so no new features (except “or” in filters) or no changes with your existing code.

Here is the bugfix list:
FIXES:
. Limit clause not being respected
. JS function for changing filters not working [562]
. perPage selector disappearing [559]
. Manual filters(array) not working [567]
. CRUD Edit always edit the first record of the source and not the passed one [563]
. Filtering aggregate functions from zend select should be in the having clause [551]
. Replacing multidimensional array values [564]
. Use of Bvb_Grid_Source_Zend_Select/Table does not work through provided Model [472]
. Custom fields being ignored on Mass Actions
. orderFiled Option not being applied in certain circumstances [414]
. Issue with compound keys and models
. css and row conditions
. Reset Column not working

NEW:
. Added “OR” search in filters (||textTosearch) [570]

Please check the project page for downloads ( http://code.google.com/p/zfdatagrid/ ).

As usual, any suggestion is welcome. Also report any issue you may find.

Be cool

Bookmark and Share

19 Comments »

  1. kim Said,

    February 1, 2011 @ 17:55

    Hi,
    how do i get the export to Excel and pdf to work?

    i’ve tried your demos but they don’t work either. When i export to excel for instance i get an error message.

    is there some kind of documentation on this point? I thought they worked out-of-the-box.

    kim

  2. Bento Vilas Boas Said,

    February 1, 2011 @ 19:45

    Hi Kim.

    Can you post the error you get?

    PDF export has been disable on demos, but excel is working fine for me

    Best Regards,
    Bento Vilas Boas

  3. fuhrysteve Said,

    February 7, 2011 @ 01:55

    If you get the chance, could you please commit 7.1 svn as a tag?

    I’d prefer to keep the trunk out of production (I use svn externals), and 7.1 fixes some blockers for me.

  4. Bento Vilas Boas Said,

    February 7, 2011 @ 02:33

    Hi fuhrysteve,

    Done.

    Best Regards,
    Bento Vilas Boas

  5. altivec Said,

    February 14, 2011 @ 16:55

    Hi, how could I made a custom export ?
    I’d like to add the possibility to export only mobile phone for example, or to add the possibility to export to a SMS gateway.

    Thanks for your help, and for your great job !

    Aurélien.

  6. Bento Vilas Boas Said,

    February 14, 2011 @ 20:39

    Hi Aurélien,

    For exporting only selected fields, you can do this:

    $grid->setXmlGridColumns(array(‘field1′,’field2′));

    just replace Xml for with any other export method (pdf, excel, word, json, etc, etc)

    To create your own method just make your class extend Bvb_Grid

    Ex: class My_Grid_Sms extends Bvb_Grid
    {

    }

    $grid = Bvb_Grid::factory(‘My_Grid_Sms’);

    Best Regards,
    Bento Vilas Boas

  7. altivec Said,

    February 15, 2011 @ 15:15

    Thanks for the quick answer !
    Did you seen my other post ?

    Hi, I can’t make working the external filter with many grids on the same page.
    It works fine with only one, but with 2, despite I call as you say : onChange’=>’_cajourgridChangeFilters() it does not refresh the datas.

    There is a redirection, there is a parameter in the URL with value, but the datas are still the same…

    Any idea ?

    Here is my code :
    On the view :
    $array = array(”=>’–CHOIX DES CA–’,500=>’500 E’,750=>’750 E’,1000=>’1000 E’,1500=>’1500 E’);
    echo $this->formSelect(‘ca’,$this->pages->getParam(‘ca’),array(‘onChange’=>’_cajourgridChangeFilters()’),$array);?>

    My callback function :
    function ca ($id, $value, $select)
    {
    $select->where(‘ca_ht>?’, $value);
    }

    And my action :
    $grid = $this->grid(‘cajour’);
    $select = $this->_db->select()->from(‘ca_jour’);
    $grid->query($select);

    $grid->addExternalFilter(‘ca’, ‘ca’);
    $view->pages = $grid->deploy();

  8. Bento Vilas Boas Said,

    February 15, 2011 @ 18:02

    Hi,
    Change this

    echo $this->formSelect(‘ca’,$this->pages->getParam(‘ca’),array(‘onChange’=>’_cajourgridChangeFilters()’),$array);

    to this:

    echo $this->formSelect(‘ca’,$this->pages->getParam(‘ca’),array(‘onChange’=>’_’.$this->pages->getGridId().’cajourgridChangeFilters()’),$array);?>

    Best Regards,
    Bento Vilas Boas

  9. altivec Said,

    February 16, 2011 @ 17:41

    I changed as you said :

    echo $this->formSelect(‘ca’,$this->pages->getParam(‘ca’),array(‘onChange’=>’_’.$this->pages->getGridId().’gridChangeFilters()’),$array);?>

    It redirects with correct parameter in the url, but the filter doesn’t apply…
    Any idea ?

  10. quiteraven Said,

    February 20, 2011 @ 20:47

    CRUD Edit always edit the first record of the source and not the passed one [563]

    In file Bvb/Grid/Deploy/Table.php change 2078 line:

    this:
    foreach ($columns[0] as $value) {

    for this:

    foreach ($this->_willShow['detailId'] as $value)
    {
    $id = $value;
    }

    foreach ($columns[$id] as $value) {

  11. Bento Vilas Boas Said,

    February 20, 2011 @ 20:55

    Hi,

    Are you using latest version?

    Best Regards,
    Bento Vilas Boas

  12. Bento Vilas Boas Said,

    February 20, 2011 @ 21:02

    @altivec,

    echo $this->formSelect(‘ca’,$this->pages->getParam(‘ca’),array(‘onChange’=>’_’.$this->pages->getGridId().’gridChangeFilters()’),$array); ?>

    to
    echo $this->formSelect(‘ca’,$this->pages->getParam(‘ca’),array(‘id’=>’ca’.$this->pages->getGridId(),‘onChange’=>’_’.$this->pages->getGridId().’gridChangeFilters()’),$array);?>

    Best Regards,
    Bento Vilas Boas

  13. quiteraven Said,

    February 21, 2011 @ 19:12

    hi
    I’m using 0.7.1 version.
    This code fixes bug nr 563.

  14. Bento Vilas Boas Said,

    February 21, 2011 @ 21:03

    @quiteraven

    The code you posted is related with Detailed View, not CRUD operations.

    I’m not able to reproduce the issue [563]. What source are you using to edit records?

    Best Regards,
    Bento Vilas Boas

  15. altivec Said,

    February 23, 2011 @ 12:10

    @Bento Vilas Boas

    I am sorry, I can’t this make this working…
    I replace with your suggestion :

    echo $this->formSelect(‘ca’,$this->pages->getParam(‘ca’),array(‘id’=>’ca’.$this->pages->getGridId(),‘onChange’=>’_’.$this->pages->getGridId().’gridChangeFilters()’),$array);?>

    It doesn’t work, it submit the form, but no params pass in the URl this time…

    I can send you by email the files if you like ti check…

    Regards,

    Aurélien.

  16. quiteraven Said,

    February 24, 2011 @ 19:06

    How to display data from related tables relationship ??

  17. krimish Said,

    March 9, 2011 @ 04:59

    Hi Bento,

    I am binding table to ZFDatagrid, Now I have a requirement that one of the column’s data of this table should be a link and on click of the hyperlink , it should open a new page which give drill down view of that specific cell data. can you let me know , how I can achive this using ZFDatagrid.

  18. Bento Vilas Boas Said,

    March 9, 2011 @ 05:09

    Hi krimish,

    You can achieve that using decorators.

    Just a quick example:

    $grid->updateColumn('id',array('decorator'=>'Click for more details'));

    #Please note that you can put any field that is in your query between brackets and see it replaced by the actual field value. So {{id}} will be replaced by the id field value.

    For more information please check the manual for decorators and also for extra columns.
    http://code.google.com/p/zfdatagrid/downloads/list

    Best Regards,
    Bento Vilas Boas

  19. cp22279 Said,

    August 11, 2011 @ 07:43

    Dear Bento.Vilas.Boas,

    I like your zfdatagrid very much. It’s great!
    I have a question. Now, How can I change label “Apply Filter” to “Begin Filter” ?

    Thanks for support,

    http://s1129.photobucket.com/albums/m520/cp22279/delete/?action=view&current=label.png

RSS feed for comments on this post

Leave a Comment

You must be logged in to post a comment.