I wrote a function to add new column which SUM column from another table.
The function is working good but I cannot sort or search in that column. Is there any other way to get this working ?
Here is the code
http://pastebin.com/BrDPWjup
3 Answers
For search/sort, this must be part of main sql query, perhaps something like subquery.
I think I solved this with custom query in select_command
here is the solution if anyone needs
http://pastebin.com/fvkeknbz
Your Answer