one sec. export is meant to give the user the full resultset he can access (let's say, offline consultation). Currently, only the "with hidden cols" exports honour the current query. Before calling it a bug we should agree on what functionalities expose on the grid .
Il giorno martedì 6 novembre 2012 14:47:40 UTC+1, Aurelijus Useckas ha scritto: > > OK > > On Tuesday, November 6, 2012 3:35:10 PM UTC+2, Johann Spies wrote: >> >> On 6 November 2012 12:50, Aurelijus Useckas <aureliju...@gmail.com>wrote: >> >>> I want to export a certain query in SQLFORM.grid to a CSV, but once I >>> press on the (any) export option bellow the SQLFORM.grid, it exports the >>> whole table and not just the ones meeting the certain criteria. >> >> >> >> This must be viewed as a bug in my opinion. To me it is important that >> the csv-buttons at the bottom of the grid must work with the same query >> that determines what is shown in the grid. If the user refines the >> original query using the search options available, that must be reflected >> in the csv-export. >> >> I think it is worth opening an issue about this. Will you do it please? >> >> As a workaround you can add your own export button which redirects to a >> function which handles the query correctly. >> >> Regards >> Johann >> >> -- >> Because experiencing your loyal love is better than life itself, >> my lips will praise you. (Psalm 63:3) >> >> --