Export CSV only selected rows

Hello, please, can you help me with the following please.
In my app, from the Schedules table, I add the option to be able to export to csv, but I only need to export the selected rows, is this possible?
I await your comments.

Thank you.

0 20 2,002
20 REPLIES 20

You could try the following option

  1. Add a new column to the table, a โ€œflagโ€ column.
  2. Create an Action that will set this โ€œflagโ€ column to some value.
  3. From the screen that youโ€™ve shown, where you select multiple records, you can then run this new Action across all of those selected records (from the upper-right).
  4. Create a new Slice that will only show the records selected by the above.
  5. Create a new View based on the Slice.
  6. Trigger the CSV download action from this new View.

on the action that is โ€œexport to CSVโ€ we only see the DATA tables โ€ฆno Slices or views. We want to download from a slice.

I have no idea what you are saying or asking.

Actions are always attached to tables, not slices or views. Actions can the be used in views that use the actionโ€™s table or a slice atop that table.

The Export to CSV action will export the rows contained in the view from which the action is performed. It is up to you to make the action available (e.g., to display the action button) only in those views that contain only the rows that should be exported. To export the entire table, display the button in a view of the entire table. To export the rows of a slice, display the button in a view of the slice. To export only select records by some arbitrary criteria, display the button in a view referenced by a LINKTOFILTEREDVIEW() expression in a navigation action.

we have a view that has only the items we want exported, when we click on the icon to download the csv it downloads the entire table.
The table reference in the action.

So are you posting here to report a bug, or are you asking a question, or what? Please show screenshots of this happening, because it certainly doesnโ€™t happen like that on my end.

we have a view based on a slice. This view only shows the records I want to export to CSV. See the attachment for the view setup.

I have also included the action on that slice/view. It will download the whole CAR table, not just my view.


It โ€œwillโ€, or it did?

it exports all the records in the table even though my view is showing a subset of the records based on a slice.

As Steve just said, sounds like a bug then.

It seems like the download ignores the useremail() formula. We use it it in our slice but it is ignored on the download.

I am having exact the same issue as @llheath , did you manage to filter out a solution or was it confirmed a bug from AppSheet ?

Could we get a screenshot of the My CAR Requests slice configuration?

so we have the action on a view of this slice

The view works perfect. but when we click the action everything in the CAR is exported not just the records that are seeing in the view obtained from this slice.

It all looks good to me (though thereโ€™s a lot to follow, and I might be overlooking something). As far as I can see, you should be getting your desired behavior. That youโ€™re not suggests a bug. A bug means youโ€™re going to have to engage Support. Someone there will be able to dive into your app configuration directly and figure out whatโ€™s going on.

https://www.appsheet.com/Support/Contact

Sorry I couldnโ€™t help! Please let us here know what you and Support work out!

I do have the a view that is based on a slice (so I am only seeing the records I want to export)
The action is displayed on that view.
When I click on the action the entire table is exported not the view I am looking at.
Here is the view setup and the action:
(CAR is the entire table)โ€ฆ


The action is on the view, but I can not change the โ€œrecord for this tableโ€ and it is exporting the whole table โ€œcarโ€

action:

using LINKTOFILTEREDVIEW() is a good option, but I couldn't find any way to filter rows that I have manually selected, the only way I found is to use an intermediate action to mark rows by setting a specific flag field, as suggested by  @Marc_Dillon

Thank you very much @Marc_Dillon for your help. I understand what you are telling me, and the idea is very good. But as it indicates to me, I would have two screens, one where I select the records, and then I should navigate to another screen where from there if they downloaded the previously selected records, is that right?
My need is to be able to make the selection and download from the same screen.
I imagine it should work just like the delete option does โ€ฆ
I select and delete. With the difference that in the case that I propose, it would be select and download โ€ฆ
This is possible this?

Thank you in advance for your kind help!

Not exactly.

But here is another option. Note that you donโ€™t use Appsheetโ€™s CSV download Action for this.

  1. Multi-select your records as above.
  2. Click an Action to โ€œflagโ€ all of those records.
  3. Click a second Action button (just once, NOT for each record), to trigger a Workflow (or a new โ€œBotโ€).
  4. The Workflow/Bot sends out an email to the user, containing a CSV attachment with the selected records.
  5. Youโ€™ll need to create the CSV template to reference and output all of the selected records.

I want to change CAR to be my view or slice.

Top Labels in this Space