hi all,

I've attached my data-export display to a page display. This page has some exposed filter.

"filename" configuration is: %view-%exposed_%timestamp-full.csv

Well, when i see my page view with some exposed filters setted up (e.g. first name = Alan), I can see the CSV button on the bottom, and it point to:

http://www.site.com/admin/utenti/export-csv?first_name=Alan&surname=&mai...

So I think the querystring is correct, but the resulting filename is:

utenti-default_2011-11-09T17-12-22.csv

as if the filters had not been set

I can't obtain exposed filters token in my filename: why?

Thank you very much

Comments

danielphenry’s picture

Also seeing this. exposed filter works great but the token always says "default".

jelle_s’s picture

Same problem here. Filter works looking at the result I'm getting, but the token doesn't.

steven jones’s picture

Version: 6.x-2.0-beta5 » 7.x-3.x-dev

So this is because we compute this filename right at the end of the batching process, and so we lose the context. We need to capture this information up-front I think.

steven jones’s picture

Issue tags: +Needs tests

This will need tests.

steven jones’s picture

Status: Active » Postponed

Not sure how we're going to test this...or implement this, this might need to wait until after the 'big refactor' when this sort of thing should be easy to do.

steven jones’s picture

Status: Postponed » Closed (duplicate)