Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I've attached a Views CSV Export feed to a page view. The page view has Exposed Filters. I'd like the CSV to use those Exposed filters to filter to match the page view. I've added Arguements to match the Exposed filters, but hasn't worked.
Any ideas how I can get the CSV to use the Exposed Filters from the page it's attached to?
Comments
Comment #1
ambientdrup CreditAttribution: ambientdrup commentedI also want to do this. Any suggestions on how to make this work?
-backdrifting
Comment #2
neclimdulYou just have the same exposed filters on the attached views(ideal just put them all on the default view and don't override anything). Arguments are something different. The feed links will automatically get the same filters applied to its url as the filters your currently viewing.
Example of it in action: http://views.nerdpalace.net/export_example
Comment #3
bkosborneneclimdul,
Can you go into this further? I'd like to be able to apply more than one filter to the view. Ideally I would just have a block or page with all of the filters I can apply and hit "render" and it would download the view in a CSV.
Comment #4
gregaltuna CreditAttribution: gregaltuna commentedCan anyone help me get this going? I want the buttons at the bottom right, as well, but don't know what I'm doing wrong. Can/would anyone give me a nutshell step-by-step to get the export function working? I've installed the bonus pack and bulk operations... anything else I'm missing? Bulk Exporter (under Site Building) wants me to create a module?? I'm just not there yet, so far as the programming side is concerned. ANY and all help would be amazing...
Comment #5
bkosborneHere's what I did.... I have a view that displays a page display type and added filters to it. It shows up as a table style. Then I added another ATTACHMENT display type, made it a CSV style... went to settings for that style and filled in my options (like generate a file, etc), and for settings box, I set it to attach to the page display type & gave it a path. there you go.
Comment #6
ionmedia CreditAttribution: ionmedia commentedhi, i have no xls style in ATTACHMENT display type, only in feed.
i changed title of this issue for better search
Comment #7
neclimdulAs is documented in the README.txt, they are feed types. When creating the feeds, you attach them to the page you want the icons to be displayed on just like any other feed.
Comment #8
rcharamella CreditAttribution: rcharamella commentedI'm using 6.x-1.x-dev. My Page has 3 exposed filters, my CSV feed has the same 3 filters. But the CSV feed does not honor the exposed filters. In Views, there is no "Inherit exposed filters" for the CSV feed like there is for the Attachment display type. How can I make this work?
Comment #9
interestingaftermath CreditAttribution: interestingaftermath commentedDid you ever find an answer to this, rcharamella?
Comment #10
rv0 CreditAttribution: rv0 commentedin my case it works if you make sure the exposed filters have exactly the same settings (in my view: the default settings for all pages)
Comment #11
gmreed CreditAttribution: gmreed commentedI have two exposed filters (one is a node reference and one is a date range) and the csv export works to the extent that it will export the results generated by the default values I have chosen for the exposed filters. However, if I change the filter values after the view has loaded, the csv export does not reflect those changes and still exports the default results (thereby rendering the exposure of the filters pretty meaningless). Can anyone confirm whether the csv export should be able to respond to changes in the exposed filter values?
(And neither filter is an override (i.e. they are the same for defaults, page and feed), as discussed by rv0 in #10).
Comment #12
feuillet CreditAttribution: feuillet commentedSame Issue here like gmreed #11
Would like to see only the results in the export/feed.
Comment #13
khan2ims CreditAttribution: khan2ims commentedHi,
I was also have the same problem. The csv output file was not respecting the filters applied by exposed filter. After playing around, I changed one setting. Under "Data export settings", I set Batched export: No. And now the csv output file is rendering correct results!
Comment #14
keyswebsites CreditAttribution: keyswebsites commentedYes, export respects user set filters, but it's not obvious how to construct the url. Here's an example:
http://examplesite.com/voterview/all/all/all/export.csv?field_age_value[...
This is for D7 and Views 3
For me bulk export did not work until I set pager to display all & attached the export view to the main view on the view's export page settings .
HTH
DJAMES
Comment #15
ashii CreditAttribution: ashii commentedThis should work for you
Comment #16
neclimdul