Exporting filtered data

edited July 2014 in Modules
Hi,

I'm using a simple module to manage a table containing client information.

I've set "advanced search" and "exportable" to TRUE in the module configuration and I've set the filters method in the model to filter the list view (using the 'client_language' and 'client_type' fields).

My question is how can I overwrite the "export_data" method in my model to dowload the filtered data as a CSV? Right now, even though I can narrow the data listed using the filters in the advanced search box, when I export I get the full data set.

Thanks.

Comments

  • edited 10:33AM
    The Base_module_model in which your simple module inherits from, has a method of "export_data" in which you can overwrite.
Sign In or Register to comment.