Welcome to Kodok Marton's homepage

Professional work from professionals!

  • Increase font size
  • Default font size
  • Decrease font size
Home Programming
Programming


Clear filters gridview Yii extension

This extensions helps you to clear remembered filter values on GridViews. Adds an additional image in top right of the grid.

The EButtonColumnWithClearFilters extension adds up some functionality to the default possibilites of CButtonColumn implementation when you use extensions to remember filter values. This extension helps you to clear the remembered filter values.

Read more...
 

Remember filters gridview Yii extension (updated June 3, 2011)

This extensions helps you to remembered/store filter values of GridViews between navigation, filters will stick.

The ERememberFiltersBehavior extension adds up some functionality to the default possibilites of CActiveRecord/Model implementation.

It will detect the search scenario and it will save the filters from the GridView. This comes handy when you need to remember them between navigation during page changes. For lot of navigation and heavy filtering, this functionality can be activated by just a couple of lines.

Read more...
 

Resources for faster programming - time-honored methods

A gyorsabb programozast elosegito eroforrasok

 

How to count all NULL values in a table?

The other day I came across with a situation when a guy asked about how can he count all NULL values in a table, not only on a specific column.

He wanted to use the value for their contacts database report. Where all the columns for a contact is preferred but not mandatory, he just want to generate a quick report on the completion percentage of contact information in the entire table. He wanted to count from all the columns and not from one.

Read more...
 

Getting a list of days from SQL date range (the most surreal query ever seen)

I asked a few days ago on a forum for help, to run a TSQL query like

select ... as days where `date` is between '2010-01-20' and '2010-01-24'

And return data like:

days 
---------- 
2010-01-20 
2010-01-21
2010-01-22
2010-01-23
2010-01-24 
I ended up with the most surreal query ever seen in my life:
Read more...