I am working with dhtmlx grid and generation of reports based on the data in the grid. I do not see the need to hit the Db again for data as it is already present in the grid. Needless to say the grid data are derived from a Db and so is the report.I was considering an approach which would basically map a Db column to a Report column. So my idea was to make this as generic as possible, to make things simpler from the developer perspective. All was well and fine and I almost had it all planned it out.
Now I have another requirement. The reports and the Db remain the same but added is a search criteria. Now I've got to manage the mapping with a search criteria in between. Any ideas on how to go about this one?