ColdFusion 8
I have a cfgrid that that is based on a query. It is not bound to a cfc function because I want a scrolling grid, not a paged grid (you must supply the page number and page size if you use BIND).. I can figure out how to make it filter on one column by using the following code, but I really need to filter on three columns…
grid.getDataSource().filter("OT_MILESTONE",t1);
Adding more to the filter string does not do the trick…it ignores anything more than the first pair of values..
so..I thought if I called a function that passes the three values and returned the query results to me, I could replace the Data Store for the grid..but I cannot figure out the syntax to get it to replace.
The returned variable for the query has the following format:
{"COLUMNS":["SEQ_KEY","ID","OT_MILESTONE"],"DATA":[[63677,"x","y"]]}
Any ideas?
after much blood, sweat, tears and swearing..here’s the answer, in case anyone else might need to filter a cfgrid by more than one variable:
you will need a JS trim function…
Make sure the column names are caps…