Function Backed Export

Hi all!

I have a table in Workshop that I would like to export. I know about function based exports, however, I am struggling to write a code that would export the contents of my table in Excel (or as a csv).

I also have two additional questions:

  • Currently the users have the option to configure columns in that table, would it be possible to export the configured table, or only just the predetermined columns I already selected for it?
  • Is it possible to export a specific combination of the columns without actually creating a table for it? (All columns are in the data already, I would just like a download button, without having the table displayed in the Workshop app.)

I would be grateful for any type of example export functions that are not hard-coded (I am aware of this thread, however, unfortunately it does not solve my issue) or any resources of where can I find these examples.

Thank you so much for your help! :slight_smile:

Hey, you can right-click on any row in the object table to access the option to download it as an Excel or CSV file. The downloaded file will also reflect the columns that users have configured to view.

Do you still need the function based export?

Thank you so much for your help!

1 Like

Hi!

The previous reply solved my current problem, but I would still be grateful for an example on how to do an export function, as it is very likely that I will need it in the future!

Thank you! :slight_smile:

@Liha could you elaborate on why function backed export doesn’t meet your needs?

Here are some docs: https://www.palantir.com/docs/foundry/workshop/widgets-button-group#function-backed-export

  • there is an examples from vincent in the thread you shared