How to export data based on conditions

Created on 5 February 2018, about 7 years ago
Updated 19 February 2023, about 2 years ago

Suppose I am generating csv report using views data export, one of requirement is to remove some rows based upon some role wise conditions, means if authenticated user clicks on download it will download all the rows but if anonymous user clicks on it, It will download few of it.

any help will be highly appericiated

Thanks
Prithiraj

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇮🇳India prithiraj

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇸🇰Slovakia sano

    in the display used for export put a filtering condition to the query (into the Filter criteria section) that checks the current user role

  • Status changed to Closed: won't fix 4 months ago
  • 🇬🇧United Kingdom steven jones

    Sorry for the lack of attention to your issue, please accept my apologies.

    Drupal 7 is going to be end-of-life'd by the community in approximately 1 month.

    As such, I am closing all non-critical looking, non-PHP compatibility issues for Views Data Export to tidy up the issue queues and reduce the noise. You can read about this on #3492246: Close down Drupal 7 issues.

    If you feel like this issue has been closed by mistake, please do comment about re-opening it.
    If you feel like the ticket is still relevant for the 8.x-1.x version of the module, then please search for a duplicate issue first, and if there really isn't one (and you've looked properly) then change the version on the ticket and re-open.

    Thanks to everyone involved in this issue: for reporting it, and moving it along, it is truly appreciated.
    The Drupal community wouldn't be what it is today without your involvement and effort, so I'm sorry that we couldn't get this issue resolved. Hopefully we'll work together in a future issue though, and get that one resolved :)

Production build 0.71.5 2024